Cache based on query params
-
Hi there,
I’ve created a custom REST-API route on my WordPress site, which looks like this:
https://mydomain.com/wp-json/namespace/v1/custom-route?query=test
The custom route is mostly based on query parameters.It seems to me that WP REST Cache is not caching based on the
query
is there a way to include this and other query parameters into the cache key? There should be an individual item in the cache for each query parameter, that is being passed to the route.Thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cache based on query params’ is closed to new replies.