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.


Top ↑

Return

(string) The cache key.


Top ↑

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 );
	}


Top ↑

Changelog

Changelog
VersionDescription
5.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.