-
Notifications
You must be signed in to change notification settings - Fork 62
Timeouts
Adjust configuration settings to increase timeout threshold.
Accurate as of WP Search with Algolia 2.7.x
This documnetation a work in progress.
WP Search with Algolia makes use of the HttpClientInterface provided by Algolia's PHP client.
With that, we have the algolia_http_client_options filter available for usage to pass arguments to a new CurlHttpClient instance. Default of an empty array.
With this filter, you can pass an array of valid key/value pairs that are meant to be used with curl_setopt() function calls. The cURL handle will already be managed, this just needs the settings to adjust.
See https://curl.se/libcurl/c/CURLOPT_TIMEOUT.html specifically for CURLOPT_TIMEOUT.
See https://curl.haxx.se/libcurl/c/curl_easy_setopt.html for a list of all available curl_setopt() arguments.