Disable cache by default.

git-svn-id: https://develop.svn.wordpress.org/trunk@3504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-02-04 03:21:09 +00:00
parent 753a2c01ad
commit 8a9ce54916
1 changed files with 3 additions and 0 deletions

View File

@ -400,6 +400,9 @@ class WP_Object_Cache {
if (defined('DISABLE_CACHE'))
return;
if ( ! defined('ENABLE_CACHE') )
return;
// Disable the persistent cache if safe_mode is on.
if ( ini_get('safe_mode') && ! defined('ENABLE_CACHE') )
return;