Title: Object Cache
Last modified: November 2, 2022

---

# Object Cache

 *  Resolved [mundkurgopi1955](https://wordpress.org/support/users/mundkurgopi1955/)
 * (@mundkurgopi1955)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/object-cache-10/)
 * Hello,
 * I am suddenly getting this notice on the Site Health Status:
    **“You should use
   persistent object cache. A persistent object cache makes your site’s database
   more efficient, resulting in faster load times because WordPress can retrieve
   your site’s content and settings much more quickly. Your hosting provider can
   tell you if a persistent object cache can be enabled on your site.”
 * Should I turn on **“Automatically purge the object cache when Cloudflare cache
   is purged”** and also turn on **“Automatically purge the OPcache when Cloudflare
   cache is purged”**?
 * Kindly advise.
 * Thank you,
    Gopi Mundkur

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/object-cache-10/#post-16162275)
 * Well, object caching has it’s pros and cons. Sometimes with object caching it
   creates issues with the site content not getting updated properly.
 * Anyways, this is not a object caching plugin. If you need object caching, you
   need to ask your host to enable it by using something like Redis. Then you can
   install a redis plugin to purge cache and enable that option so that it also 
   let the system know to purge the object cache.
 * Basically enabling that option will call this function `wp_cache_flush()`.
    Link:
   [https://developer.wordpress.org/reference/functions/wp_cache_flush/](https://developer.wordpress.org/reference/functions/wp_cache_flush/)
 *  Thread Starter [mundkurgopi1955](https://wordpress.org/support/users/mundkurgopi1955/)
 * (@mundkurgopi1955)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/object-cache-10/#post-16163641)
 * Hi Saumya,
 * Thank you for the explanation.
 * However, can you also advise about activating **“Automatically purge the OPcache
   when Cloudflare cache is purged”**
 * Regards.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/object-cache-10/#post-16164433)
 * As I said above yes you can as it will call the `wp_cache_flush()` function on
   purge.
 *  Thread Starter [mundkurgopi1955](https://wordpress.org/support/users/mundkurgopi1955/)
 * (@mundkurgopi1955)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/object-cache-10/#post-16164806)
 * I did not realise you were referring to the OPCache. Thank you once again, Saumya.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Object Cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mundkurgopi1955](https://wordpress.org/support/users/mundkurgopi1955/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/object-cache-10/#post-16164806)
 * Status: resolved