Git Product home page Git Product logo

Comments (3)

airesvsg avatar airesvsg commented on September 24, 2024

Hello @mksamadnet,
What's the WordPress Version?
Whats Plugins you are using?
Thanks

from wp-rest-api-cache.

mksamadnet avatar mksamadnet commented on September 24, 2024

Hello @airesvsg,
Thanks for the response!
I'm using the latest WordPress Version 4.7.5 and using 10 WordPress plugins on the site which are listed below
Add Shortcodes Actions And Filters
Advanced Custom Fields
Character Countdown
Easy Heads Up Bar
EWWW Image Optimizer
Force Post Category Selection
Jetpack by WordPress.com
W3 Total Cache
WP FCM
WP REST API

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.
Hope you can help me on this issue!

from wp-rest-api-cache.

thefrosty avatar thefrosty commented on September 24, 2024

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 empty_cache() method may not work as expected across installs.

A memcached plugin, for example, would make WordPress store transient values in fast memory instead of in the database. For this reason, transients should be used to store any data that is expected to expire, or which can expire at any time. -- codex

See issue #16 👍

from wp-rest-api-cache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.