Make WordPress Core

Changeset 3436


Ignore:
Timestamp:
01/14/2006 09:22:48 PM (21 years ago)
Author:
ryan
Message:

Disable peristent cache when safe_mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r3435 r3436  
    397397                        return;
    398398
     399                // Disable the persistent cache if safe_mode is on.
     400                if ( ini_get('safe_mode') )
     401                        return;
     402
    399403                if (defined('CACHE_PATH'))
    400404                        $this->cache_dir = CACHE_PATH;
    … …  
    404408                if (is_writable($this->cache_dir) && is_dir($this->cache_dir)) {
    405409                                $this->cache_enabled = true;
    406                 } else
     410                } else {
    407411                        if (is_writable(ABSPATH.'wp-content')) {
    408412                                $this->cache_enabled = true;
    409413                        }
     414                }
    410415
    411416                if (defined('CACHE_EXPIRATION_TIME'))
Note: See TracChangeset for help on using the changeset viewer.