WordPress

Disable WP_CACHE for WordPress

WordPress has an integrated cache module but not many websites use this, perhaps this will help you.

If you’re publishing recent changes to your WordPress website and not seeing them live, try disabling WP_CACHE, as this is what allows your website to cache its content. Disabling this feature is done through a file named wp-config.php in your WordPress folder.

  1. Edit the wp-config.php for your website .
  2. Look for define('WP_CACHE', true); and if you do not see it, we need to add it.
  3. Copy / paste define('WP_CACHE', false); before the part that says /* That’s all, stop editing! Happy publishing. */ (around line 70 maybe?)
  4. Make sure WP_CACHE is false… and not true.
  5. Save your changes.

Leave a Comment

 

Consider sharing this post at whatever time suits you old sport.