Filter hook 'rest_url_details_cache_expiration'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php at line 479

Description

Filters the cache expiration. Can be used to adjust the time until expiration in seconds for the cache of the data retrieved for the given URL.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php 479

Parameters

Type Name Description
int $ttl The time until cache expiration in seconds.

PHP Doc

/**
		 * Filters the cache expiration.
		 *
		 * Can be used to adjust the time until expiration in seconds for the cache
		 * of the data retrieved for the given URL.
		 *
		 * @since 5.9.0
		 *
		 * @param int $ttl The time until cache expiration in seconds.
		 */