Weird aggressive caching of Rest API endpoint
-
I am using WordPress as Headless, and only using my own custom Rest API to access/modify custom DB tables. Problem is, I can find some weird level of caching from Redis, like Redis seems to cache with key name of “site_name_page”, and that key has the full cached response of my Rest API. I am already using wp_cache_* functions to set/delete at appropriate events, but this cache is being served way before that. So basically, the full Rest API is being cached by Redis, and its not from my wp_cache_* functions, its way before that. My question is, is there any way to disable this auto caching for my endpoints?
The topic ‘Weird aggressive caching of Rest API endpoint’ is closed to new replies.