Nicolas Évrard pushed to branch branch/default at Tryton / Tryton
Commits:
536d7570 by Nicolas Évrard at 2023-02-14T13:28:36+01:00
Keep using _database_cache if the specific cache hasn't been reset
Closes #12079
- - - - -
1 changed file:
- trytond/trytond/cache.py
Changes:
=====================================
trytond/trytond/cache.py
=====================================
@@ -170,7 +170,7 @@
transaction = Transaction()
dbname = transaction.database.name
lower = self._transaction_lower.get(dbname, self._default_lower)
- if (transaction in self._reset
+ if (self._name in self._reset.get(transaction, set())
or transaction.started_at < lower):
try:
return self._transaction_cache[transaction]
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/536d75706816ea8b0da91fdc8df452e7f2d5d73e
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/536d75706816ea8b0da91fdc8df452e7f2d5d73e
You're receiving this email because of your account on foss.heptapod.net.