On this page
apply_filters( 'rest_url_details_cache_expiration', int $ttl )
Filters the cache expiration.
Description
Can be used to adjust the time until expiration in seconds for the cache of the data retrieved for the given URL.
Parameters
$ttlint-
The time until cache expiration in seconds.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php. View all references
$cache_expiration = apply_filters( 'rest_url_details_cache_expiration', $ttl );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_URL_Details_Controller::set_cache() wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php | Utility function to cache a given data set at a given cache key. |
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_url_details_cache_expiration