apply_filters( 'bigcommerce/api/ttl', int $ttl , string $resourcePath , string $method , array $queryParams , array $postData )
Summary
Filter the expiration time for the cache of an API response.
Parameters
- $ttl
-
(int) Number of seconds to cache the response
- $resourcePath
-
(string) The path to the API endpoint being requested
- $method
-
(string) The request method used
- $queryParams
-
(array) Query parameters for the request
- $postData
-
(array) Posted data for the request