Thread Starter
ttips
(@ttips)
Hi,
And in the wp_rest_cache_item_allowed_endpoints option?
Nothing appears on my endpoint….
-
This reply was modified 3 years, 8 months ago by ttips.
Thread Starter
ttips
(@ttips)
Hi @rockfire,
Yes it is there but still not caching…
Thread Starter
ttips
(@ttips)
Hi @rockfire,
Are there any details that are missing?
Should “add_filter” be called after “add_action(‘rest_api_init’,…)”? (we’ve tested it before and after and it’s the same).
We have “register_rest_route” inside “add_action(‘rest_api_init’,…)”. It’s fine like this?
Thank you!
Thread Starter
ttips
(@ttips)
The wp-rest-cache.php file is also present in the wp-content/mu-plugins directory.
If we test with endpoints like “/wp-json/wp/v2/posts”, the plugin works correctly.