mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-78109 core_cache: Remove harmful requirelockingwrite/read options
These cache options are not used in core and would cause a performance cost without any benefit if ever used. Also they don't work properly.
This commit is contained in:
parent
ef93325f27
commit
8df2ac4e98
5 changed files with 21 additions and 249 deletions
6
cache/README.md
vendored
6
cache/README.md
vendored
|
@ -16,8 +16,7 @@ A definition:
|
|||
),
|
||||
'requiredataguarantee' => false, // Optional
|
||||
'requiremultipleidentifiers' => false, // Optional
|
||||
'requirelockingread' => false, // Optional
|
||||
'requirelockingwrite' => false, // Optional
|
||||
'requirelockingbeforewrite' => false, // Optional
|
||||
'requiresearchable' => false, // Optional
|
||||
'maxsize' => null, // Optional
|
||||
'overrideclass' => null, // Optional
|
||||
|
@ -137,8 +136,7 @@ The following optional settings can also be defined:
|
|||
* requireidentifiers - Any identifiers the definition requires. Must be provided when creating the loader.
|
||||
* requiredataguarantee - If set to true then only stores that support data guarantee will be used.
|
||||
* requiremultipleidentifiers - If set to true then only stores that support multiple identifiers will be used.
|
||||
* requirelockingread - If set to true a lock will be acquired for reading. Don't use this setting unless you have a REALLY good reason to.
|
||||
* requirelockingwrite - If set to true a lock will be acquired before writing to the cache. Avoid this unless necessary.
|
||||
* requirelockingbeforewrite - If set to true the system will throw an error if you write to a cache without having a lock on the relevant key.
|
||||
* requiresearchable - If set to true only stores that support key searching will be used for this definition. Its not recommended to use this unless absolutely unavoidable.
|
||||
* maxsize - This gives a cache an indication about the maximum items it should store. Cache stores don't have to use this, it is up to them to decide if its required.
|
||||
* overrideclass - If provided this class will be used for the loader. It must extend one of the core loader classes (based upon mode).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue