From 080c0c2bb5aefbc64ca1e9cff6a8844a3f78b2d9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 18 Jan 2006 22:21:40 +0000 Subject: [PATCH] Add ENABLE_CACHE flag to force persistent cache enable. git-svn-id: https://develop.svn.wordpress.org/trunk@3462 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 7ad6422821..3ca913f139 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'))