MDL-36466 cache: tidy up after review
This commit is contained in:
@@ -138,6 +138,14 @@ if (!defined('PHPUNIT_TEST')) {
|
||||
define('PHPUNIT_TEST', false);
|
||||
}
|
||||
|
||||
// When set to true MUC (Moodle caching) will be disabled as much as possible.
|
||||
// A special cache factory will be used to handle this situation and will use special "disabled" equivalents objects.
|
||||
// This ensure we don't attempt to read or create the config file, don't use stores, don't provide persistence or
|
||||
// storage of any kind.
|
||||
if (!defined('CACHE_DISABLE_ALL')) {
|
||||
define('CACHE_DISABLE_ALL', false);
|
||||
}
|
||||
|
||||
// When set to true MUC (Moodle caching) will not use any of the defined or default stores.
|
||||
// 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.
|
||||
|
||||
Reference in New Issue
Block a user