وردپرس
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!
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس