Merge branch 'install_26_STABLE' of git://git.moodle.org/moodle-install into MOODLE_2...
[moodle.git] / cache / upgrade.txt
blob38f9c4b21bcd979050b611abe8e32cc62a3cda1c
1 This files describes API changes in /cache/stores/* - cache store plugins.
2 Information provided here is intended especially for developers.
4 === 2.6 ===
5 * All cache instances are recorded and subsequent requests are given a reference to the original instance.
6 * The persistent option for the cache definition has been deprecated. Please use the staticacceleration option instead.
7 * There is a new static acceleration option. If enabled data passing through the cache is held onto.
8 * The persistentmaxsize option has been renamed to staticaccelerationsize. It does the same thing.
9 * cache_definition::should_be_persistent has been deprecated. Please call cache_definition::use_static_acceleration instead.
10 * cache_definition::get_persistent_max_size has been deprecated. Please call cache_definition::get_static_acceleration_size instead.
11 * cache::is_using_persist_cache() has been deprecated. Please call  cache::use_static_acceleration()
12 * cache::is_in_persist_cache() has been deprecated. Please call  cache::static_acceleration_has()
13 * cache::get_from_persist_cache() has been deprecated. Please call  cache::static_acceleration_get()
14 * cache::set_in_persist_cache() has been deprecated. Please call  cache::static_acceleration_set()
15 * cache::delete_from_persist_cache() has been deprecated. Please call cache::static_acceleration_delete()
16 * If you have any custom cache loaders you will need to rename these methods if you have overriden them and adjust any calls you may have made to them.
18 === 2.5 ===
19 * cleanup method renamed to instance_deleted.
20   It is now called when the store is deleted as all comments suggested anyway.
21 * instance_created method added.
22   It is called when the store is created for the very first time.