Transaction cache not always cleaned
Following https://discuss.tryton.org/t/skip-warnings-and-cache-issues/5951
It appears that if the number of cache created for a transaction exceed [cache] transaction
value, then some instances can still be using a transaction cache that has been removed from the LRUDict of Transaction.cache
. So when ModelStorage.write
should clean the transaction cache, it does not clean these removed caches and the instances are still using the old cached values.