MDL-57427 cache: Use perfdebug only when enabled
This commit is contained in:
committed by
Jonathan Champ
parent
edab0782a3
commit
e3d53b99aa
Vendored
+1
-1
@@ -213,7 +213,7 @@ class cache implements cache_loader {
|
||||
$this->definition = $definition;
|
||||
$this->store = $store;
|
||||
$this->storetype = get_class($store);
|
||||
$this->perfdebug = !empty($CFG->perfdebug);
|
||||
$this->perfdebug = (!empty($CFG->perfdebug) and $CFG->perfdebug > 7);
|
||||
if ($loader instanceof cache_loader) {
|
||||
$this->loader = $loader;
|
||||
// Mark the loader as a sub (chained) loader.
|
||||
|
||||
Reference in New Issue
Block a user