Not adding surrogate keys for empty affected tables
This commit is contained in:
@@ -56,7 +56,9 @@ NamedMapsController.prototype.sendResponse = function(req, res, resource, header
|
||||
|
||||
var tablesCacheEntry = new TablesCacheEntry(dbName, result.affectedTables);
|
||||
res.header('X-Cache-Channel', tablesCacheEntry.getCacheChannel());
|
||||
self.surrogateKeysCache.tag(res, tablesCacheEntry);
|
||||
if (result.affectedTables.length > 0) {
|
||||
self.surrogateKeysCache.tag(res, tablesCacheEntry);
|
||||
}
|
||||
}
|
||||
self.app.sendResponse(res, [resource, 200]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user