Title: WP_CACHE
Last modified: July 17, 2018

---

# WP_CACHE

 *  Resolved [mikeyb31](https://wordpress.org/support/users/mikeyb31/)
 * (@mikeyb31)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_cache/)
 * Hi guys,
 * I don’t really understand the “WP_CACHE” constant… with cache files cleared and“
   WP_CACHE” set to false pages are still cached by/served up by the plugin? I’ve
   had a look at the source and it seems the only way to disable the cache programmatically
   is to use the “bypass_cache” filter?
 * Surely it makes sense that if I’m setting “WP_CACHE” to false then all cache 
   mechanics should be disabled?
 * I’m having to include the “DONOTCACHEPAGE” constant in my local/dev config file
   to *trick* cache enabler into thinking it’s WooCommerce…
 * I appreciate your thoughts!
 * Cheers

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

 *  Thread Starter [mikeyb31](https://wordpress.org/support/users/mikeyb31/)
 * (@mikeyb31)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_cache/#post-10500864)
 * This is doing the trick too:
 * if (defined(‘WP_CACHE’) && WP_CACHE === false) {
    add_filter(‘bypass_cache’, 
   function () { return true; }); }
 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_cache/#post-10506004)
 * If you want to perform your own custom exclusions from Cache Enabler you’ll need
   to either use the DONOTCACHEPAGE constant or use the bypass_cache filter.

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

The topic ‘WP_CACHE’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/wp_cache/#post-10506004)
 * Status: resolved