From 7c154dd40577b7448b129c67861fbd0ac894a2f4 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 3 Mar 2016 19:01:21 +0100 Subject: [PATCH] Add notes about why we keep feeding the layergroupAffectedTables cache --- lib/cartodb/controllers/map.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index 020a5744..e4f5db46 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -336,6 +336,7 @@ MapController.prototype.afterLayergroupCreate = function(req, res, mapconfig, la req.profiler.done('queryTablesAndLastUpdated'); } assert.ifError(err); + // feed affected tables cache so it can be reused from, for instance, layergroup controller self.layergroupAffectedTables.set(dbName, layergroupId, result); // last update for layergroup cache buster