Expired Cache is not getting regenerated
-
Hello, I am a little bit puzzled about Expired Cache not getting regenerated. I have set “Cache timeout” to 6 hours, checked “Enable cache regeneration” and set “Regeneration Interval” to “Twice a day”, but expired endpoints are not getting regenerated at all – in fact, they are marked as Active? Can you explain what “Active” flag means?
I registered custom endpoint to be cached via
wp_rest_cache/allowed_endpoints
hook. They are not related with any Object Type because they serve data from external service.For example:
I have an endpoint
/wp-json/theme/v1/playerstats?id_player=504
with Expiration 2022-03-29 16:31:49 and 9 Cache hits. Shouldn’t it update its Expiration date on load when directly accessed/requested? For now it only increases “Cache hits” but Expiration date stays the same (which is more than 7 days past Cache Timeout). Is this intended behaviour and only way to update Expiration date is to manually flush cache?
- The topic ‘Expired Cache is not getting regenerated’ is closed to new replies.