How does the WordPress Object Cache work?
Formidable uses the WordPress object cache to add a caching layer to the vast majority of our database queries. The WordPress Object Cache is a global object that is used to speed up the page load. It cuts down on the number of times the database is accessed when identical queries are made in a single page load. This caching is typically non-persistent, meaning that data stored in the cache resides in memory only and only for the duration of the request. Cached data will not be stored persistently across page loads unless you install a persistent caching plugin. Here are a few known persistent caching plugins:
- W3 Total Cache
- Memcached Object Cache
- APC Object Cache / APCu Object Cache
- Redis Object Cache
If you are using one of these caching plugins, then the typically non-persistent data will be stored persistently in the database. Formidable clears cached data when a form is saved, an entry is updated, a field is deleted, etc. If you notice data is not getting updated immediately, your caching plugin may be storing data persistently in a way that Formidable is not clearing. If you are seeing this issue, please create a ticket in our help desk so we can assist you.