From 7dfd4292e9af3d7f8484ef228c708fbcc7fdd27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 30 Mar 2024 16:09:07 +0100 Subject: [PATCH] Remove extra query that retrieve cache timestamp twice --- trytond/trytond/cache.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/trytond/trytond/cache.py b/trytond/trytond/cache.py index b9a0b3feb2..a90336e7c3 100644 --- a/trytond/trytond/cache.py +++ b/trytond/trytond/cache.py @@ -309,11 +309,6 @@ class MemoryCache(BaseCache): [table.timestamp, table.name], [[CurrentTimestamp(), name]])) - cursor.execute(*table.select( - Max(table.timestamp), - where=table.name == name)) - timestamp, = cursor.fetchone() - cursor.execute(*table.select( _cast(Max(table.timestamp)), where=table.name == name))