diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 7ad642282..3ca913f13 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -397,7 +397,7 @@ class WP_Object_Cache { return; // Disable the persistent cache if safe_mode is on. - if ( ini_get('safe_mode') ) + if ( ini_get('safe_mode') && ! defined('ENABLE_CACHE') ) return; if (defined('CACHE_PATH'))