* @return bool
*/
public function should_be_persistent() {
+ debugging('should_be_persistent has been deprecated please call data_should_be_persistent instead', DEBUG_DEVELOPER);
return $this->data_should_be_persistent();
}
/**
- * Returns true if the cache loader for this definition should be persistent.
+ * Returns true if we should hold onto the data flowing through the cache.
+ *
+ * If set to true data flowing through the cache will be stored in a static variable
+ * to make subsequent requests for the data much faster.
+ *
* @return bool
*/
public function data_should_be_persistent() {
public function has_required_identifiers() {
return (count($this->requireidentifiers) > 0);
}
-}
\ No newline at end of file
+}
public function phpunit_get_store_implements() {
return class_implements($this->get_store());
}
-
- /**
- * Returns the given key directly from the persistdata cache.
- *
- * @param string $key
- * @return false|mixed
- */
- public function phpunit_get_directly_from_persistcache($key) {
- $key = $this->parse_key($key);
- return $this->get_from_persist_cache($key);
- }
-
- /**
- * Returns the cache loaders definition.
- *
- * @return cache_definition
- */
- public function phpunit_get_definition() {
- return $this->get_definition();
- }
}
/**
// Used to store data for course categories visible to current user. Helps to browse list of categories.
'coursecat' => array(
'mode' => cache_store::MODE_SESSION,
- 'persistentdata' => true,
'invalidationevents' => array(
'changesincoursecat',
'changesincourse',