From 9fd2519c12b5982c06d3f37d472f99aafa06fbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 20 Mar 2018 09:34:50 +0100 Subject: [PATCH] Rename middleware --- lib/cartodb/controllers/map.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index 61d42ed4..d9834a05 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -88,7 +88,7 @@ MapController.prototype.composeCreateMapMiddleware = function (useTemplate = fal incrementMapViewCount(this.metadataBackend), augmentLayergroupData(), getAffectedTables(this.pgConnection, this.layergroupAffectedTables), - setCacheChannel(), + setCacheChannelHeader(), setSurrogateKeyHeader(this.surrogateKeysCache), setLastModified(), setLastUpdatedTimeToLayergroup(), @@ -381,8 +381,8 @@ function getAffectedTables (pgConnection, layergroupAffectedTables) { }; } -function setCacheChannel () { - return function setCacheChannelMiddleware (req, res, next) { +function setCacheChannelHeader () { + return function setCacheChannelHeaderMiddleware (req, res, next) { const { affectedTables } = res.locals; if (req.method === 'GET') {