Remove extra query that retrieve cache timestamp twice

This commit is contained in:
Cédric Krier
2024-03-30 16:09:07 +01:00
parent c028397262
commit 7dfd4292e9
-5
View File
@@ -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))