MDL-53208 caching: Update serialization rules for performance.

- We only now serialize when required, eg when the store doesn't do it.
- static acceleration now serializes on set to reduce overhead on load.
- null now works in static acceleration as we use an array for storage metadata
- static acceleration delete uses isset rather than an array_search.
This commit is contained in:
Russell Smith
2016-02-28 17:01:51 +11:00
parent 76349f871e
commit fdff8077e0
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ abstract class cache_store implements cache_store_interface {
const IS_SEARCHABLE = 8;
/**
* The cache store dereferences objects.@global
* The cache store dereferences objects.
*
* When set, loaders will assume that all data coming from this store has already had all references
* resolved. So even for complex object structures it will not try to remove references again.