diff --git a/cache/classes/definition.php b/cache/classes/definition.php index d7f758e111e..9d5c0a25b8f 100644 --- a/cache/classes/definition.php +++ b/cache/classes/definition.php @@ -832,7 +832,7 @@ class cache_definition { * Please call {@link cache_definition::get_static_acceleration_size()} instead. * * @see cache_definition::get_static_acceleration_size() - * @deprecated since 2.6 + * @deprecated since 2.5.3 * @return int */ public function get_persistent_max_size() { diff --git a/cache/classes/factory.php b/cache/classes/factory.php index c0676975fe6..139239e59eb 100644 --- a/cache/classes/factory.php +++ b/cache/classes/factory.php @@ -307,7 +307,7 @@ class cache_factory { /** * Returns the cache instances that have been used within this request. - * @since 2.6 + * @since 2.5.3 * @return array */ public function get_caches_in_use() { diff --git a/cache/upgrade.txt b/cache/upgrade.txt index 351519f9184..bf2838d22de 100644 --- a/cache/upgrade.txt +++ b/cache/upgrade.txt @@ -1,7 +1,7 @@ This files describes API changes in /cache/stores/* - cache store plugins. Information provided here is intended especially for developers. -=== 2.6 === +=== 2.5.3 === * All cache instances are recorded and subsequent requests are given a reference to the original instance. * The persistent option for the cache definition has been deprecated. Please use the staticacceleration option instead. * There is a new static acceleration option. If enabled data passing through the cache is held onto. @@ -13,4 +13,4 @@ Information provided here is intended especially for developers. * cleanup method renamed to instance_deleted. It is now called when the store is deleted as all comments suggested anyway. * instance_created method added. - It is called when the store is created for the very first time. \ No newline at end of file + It is called when the store is created for the very first time. diff --git a/lib/db/caches.php b/lib/db/caches.php index 538216f3693..d0f75d6d20e 100644 --- a/lib/db/caches.php +++ b/lib/db/caches.php @@ -104,7 +104,7 @@ $definitions = array( 'simplekeys' => true, // The course id the groupings exist for. 'simpledata' => true, // Array of stdClass objects containing only strings. 'staticacceleration' => true, // Likely there will be a couple of calls to this. - 'persistmaxsize' => 2, // The original cache used 1, we've increased that to two. + 'staticaccelerationsize' => 2, // The original cache used 1, we've increased that to two. ), // Used to cache calendar subscriptions. @@ -129,8 +129,8 @@ $definitions = array( 'mode' => cache_store::MODE_APPLICATION, 'simplekeys' => true, // 0 or 1 depending on the requested location type. 'simpledata' => true, // Array of strings. - 'persistent' => true, // Likely there will be a couple of calls to this. - 'persistmaxsize' => 2, // Both arrays should stay loaded in memory. + 'staticacceleration' => true, // Likely there will be a couple of calls to this. + 'staticaccelerationsize' => 2, // Both arrays should stay loaded in memory. ), // Cache for the list of installed plugins - {@see get_plugin_list()}.