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))