Change tableCache.get for tableCache.peek #244
This will make it consider age of the key when it was initially set, instead of renewing it with the time of the last access.
This commit is contained in:
parent
d2f1884999
commit
07890ec608
@ -15,7 +15,7 @@ CachedQueryTables.prototype.getAffectedTablesFromQuery = function(pg, sql, skipC
|
||||
|
||||
var cachedResult;
|
||||
if (!skipCache) {
|
||||
cachedResult = this.tableCache.get(cacheKey);
|
||||
cachedResult = this.tableCache.peek(cacheKey);
|
||||
}
|
||||
|
||||
if (cachedResult) {
|
||||
|
Loading…
Reference in New Issue
Block a user