-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache is not getting Updated after post publish #14
Comments
Hello @mksamadnet, |
Hello @airesvsg, I'm using the WordPress REST API as the data source for my mobile application. The data on the WordPress site or REST API is getting updated every 30 minutes or an hour. So, After each post update or new post added to the WordPress, I need the REST API cache to be cleared immediately. |
Looks like the empty cache is called directly on the database, but the plugin is using the transients API to cache calls. If you're running any sort of object cache, transients are stored in memory and not in the database, so the
See issue #16 👍 |
Hello,
I have installed WP REST API Cache and it is caching the rest api. However, the cache is not getting cleared after the new post publish
I have added the following code, but it is still not working
Also, when I try to delete cache manually, the newest post is not appearing on the rest API. The API is getting updated only when I disable this plugin
Could you please let me know how I can fix this issue?
The text was updated successfully, but these errors were encountered: