Commit Graph
10 Commits
Author SHA1 Message Date
Cédric Krier fb9b7a5ee8 Add statistics to Cache
issue10100
review335611003
2021-04-03 23:43:40 +02:00
Cédric Krier 421ec76c49 Clear all cache after module loaded
As we rollback the cache modification when loading a module, we must clear all
of them at the end to ensure to not keep outdated data.

issue9759
review339421002
2021-01-13 00:26:53 +01:00
Cédric Krier f40d16a89e Document Cache.drop as classmethod 2020-12-26 21:49:29 +01:00
David Harper 31a0ee2ec4 Use double backticks for literals in documentation
issue9827
review335091002
2020-11-29 11:35:29 +00:00
Cédric Krier a99931c5c4 Do use translation cache if records were modified after last synchronisation
On distributed setup, the cache is not synchronized instantaneously so we can
not use the cache if the record was modified by another process since the last
synchronisation.

issue9013
review262841002
2020-02-15 01:36:48 +01:00
Cédric Krier 4b4c57a362 Add duration on Cache
issue8249
review283181002
2019-04-11 18:35:25 +02:00
Cédric Krier da24071467 Make Cache transactional
We implement sync, commit and rollback to follow transaction semantic.
When a transaction clears a cache, the global cache is cleared only when the
transaction is committed meanwhile the transaction will use a cache for itself
only.
We remove _nocache option because the sync, commit and rollback operate only
for the transaction.

issue7975
review53521002
2019-01-18 11:57:11 +01:00
Cédric Krier cdc5952145 Manage Cache in Transaction
issue6216
review33021002
2017-02-02 12:04:27 +01:00
Cédric Krier bc4e675935 Add warning about mutating cache values
issue6186
review29931002
2017-01-19 22:57:09 +01:00
Sergi Almacellas Abellana 0de3ae0a51 Allow to override cache implementation
issue5962
review33491003
2016-10-26 15:55:05 +02:00