WP_REST_URL_Details_Controller::build_cache_key_for_url( string $url ): string

In this article

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.

Utility function to build cache key for a given URL.

Parameters

$urlstringrequired
The URL for which to build a cache key.

Return

string The cache key.

Source

private function build_cache_key_for_url( $url ) {
	return 'g_url_details_response_' . md5( $url );
}

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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