Disable cache by default.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-02-04 03:21:09 +00:00
parent 7d7b32416c
commit 6c4e7e48d2
1 changed files with 3 additions and 0 deletions

View File

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