MDL-51939 mod_forum: all participants discussions are viewed by students
[moodle.git] / cache / upgrade.txt
blob22ffed49b805f90ab19a28b63e57f88c131d4ebb
1 This files describes API changes in /cache/stores/* - cache store plugins.
2 Information provided here is intended especially for developers.
4 === 2.7.4 ===
5 * Cache data source aggregation functionality has been removed. This functionality was found to be broken and unused.
6   It was decided that rather than fixing it it should be removed.
7   As well as the processing code being removed the following API changes have been made.
8   The following changes have come about because of it:
9    - cache_definition::$datasourceaggregate is deprecated an unused.
10    - cache_definition::load Argument 3 (final arg) is now unused.
11    - cache_factory::create_cache_from_definition Argument 4 (final arg) is now unused.
12    - cache::make Argument 4 (final arg) is now unused.
14 === 2.7 ===
15 * cache_store::is_ready is no longer abstract, calling cache_store::are_requirements_met by default.
17 === 2.6 ===
18 * All cache instances are recorded and subsequent requests are given a reference to the original instance.
19 * The persistent option for the cache definition has been deprecated. Please use the staticacceleration option instead.
20 * There is a new static acceleration option. If enabled data passing through the cache is held onto.
21 * The persistentmaxsize option has been renamed to staticaccelerationsize. It does the same thing.
22 * cache_definition::should_be_persistent has been deprecated. Please call cache_definition::use_static_acceleration instead.
23 * cache_definition::get_persistent_max_size has been deprecated. Please call cache_definition::get_static_acceleration_size instead.
24 * cache::is_using_persist_cache() has been deprecated. Please call  cache::use_static_acceleration()
25 * cache::is_in_persist_cache() has been deprecated. Please call  cache::static_acceleration_has()
26 * cache::get_from_persist_cache() has been deprecated. Please call  cache::static_acceleration_get()
27 * cache::set_in_persist_cache() has been deprecated. Please call  cache::static_acceleration_set()
28 * cache::delete_from_persist_cache() has been deprecated. Please call cache::static_acceleration_delete()
29 * 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.
31 === 2.5 ===
32 * cleanup method renamed to instance_deleted.
33   It is now called when the store is deleted as all comments suggested anyway.
34 * instance_created method added.
35   It is called when the store is created for the very first time.