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


Source

File: src/BigCommerce/Api/Caching_Client.php


User Contributed Notes

You must log in before being able to contribute a note or feedback.