Save accessed URLs for a cache key
-
Hello,
Currently I’m facing an issue with URLs for a cache key. As everyone can see there is a code which manipulates them in method “build_request_uri()”. For example following urls are different but with the same key:
– https://example.com/wp-json/wp/v2/endpoint?original=1&a=2
– https://example.com/wp-json/wp/v2/endpoint/?original=1&a=2
– https://example.com/wp-json/wp/v2/endpoint?a=2&original=1
– https://example.com/wp-json/wp/v2/endpoint/?a=2&original=1When I update/delete/insert post and cache is invalidated if you have integration with CDN like CloudFlare you have to purge cache on the CDN but for best performance you have to purge it by file URL.
Also it would be nice if there is an hook called on cache invalidation.
Do you have a public repository to write the code and make a PR for it?
Best regards,
Georgi!
- The topic ‘Save accessed URLs for a cache key’ is closed to new replies.