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:
Rafa de la Torre 2017-07-03 11:13:17 +02:00
parent d2f1884999
commit 07890ec608

View File

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