Remove extra query that retrieve cache timestamp twice
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user