Possible to add a filter for cache_key in build_request_uri
-
Hello,
Is it possible to add a filter in Endpoint_Api build_request_uri for alter cache_key.
I use wpml for multilanguage in stateless url mode and the language is set in headers of the request so i want to alter the cache_key to create a md5 with the current language.
Like so Endpoint_Api line83 :
$this->cache_key = md5( apply_filter(‘wp_rest_cache/cache_key’, $this->request_uri) );
Regards
Auban
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Possible to add a filter for cache_key in build_request_uri’ is closed to new replies.