Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WP_REST_URL_Details_Controller::build_cache_key_for_url() WordPress Method
The WP_REST_URL_Details_Controller::build_cache_key_for_url() method is used to generate a cache key for the given URL. This cache key is used to store the URL details in the WordPress object cache.
WP_REST_URL_Details_Controller::build_cache_key_for_url( string $url ) #
Utility function to build cache key for a given URL.
Parameters
- $url
(string)(Required)The URL for which to build a cache key.
Return
(string) The cache key.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php
private function build_cache_key_for_url( $url ) { return 'g_url_details_response_' . md5( $url ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |