if (!$definition) {
throw new coding_exception('The requested cache definition does not exist.'. $id, $id);
}
- if (!$this->is_disabled() && !($this instanceof cache_factory_disabled)) {
+ if (!$this->is_disabled()) {
debugging('Cache definitions reparsed causing cache reset in order to locate definition.
You should bump the version number to ensure definitions are reprocessed.', DEBUG_DEVELOPER);
}
// Return the instance.
return $this->configs[$class];
}
+
+ /**
+ * Returns true if the cache API has been disabled.
+ *
+ * @return bool
+ */
+ public function is_disabled() {
+ return true;
+ }
}
/**