Permalink
Browse files

MDL-36466 cache: renamed define NO_CACHE_STORES to CACHE_DISABLE_STORES

  • Loading branch information...
1 parent 7383a7e commit c9f40e77b7870c064204abf289a68d968bf9460f Sam Hemelryk committed Nov 12, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 cache/classes/factory.php
  2. +2 −2 lib/setup.php
@@ -110,7 +110,7 @@ class cache_factory {
public static function instance($forcereload = false) {
if ($forcereload || self::$instance === null) {
self::$instance = new cache_factory();
- if (defined('NO_CACHE_STORES') && NO_CACHE_STORES !== false) {
+ if (defined('CACHE_DISABLE_STORES') && CACHE_DISABLE_STORES !== false) {
// The cache stores have been disabled.
self::$instance->set_state(self::STATE_DISABLED);;
}
View
@@ -142,8 +142,8 @@
// The Cache API will continue to function however this will force the use of the cachestore_dummy so all requests
// will be interacting with a static property and will never go to the proper cache stores.
// Useful if you need to avoid the stores for one reason or another.
-if (!defined('NO_CACHE_STORES')) {
- define('NO_CACHE_STORES', false);
+if (!defined('CACHE_DISABLE_STORES')) {
+ define('CACHE_DISABLE_STORES', false);
}
// Servers should define a default timezone in php.ini, but if they don't then make sure something is defined.

0 comments on commit c9f40e7

Please sign in to comment.