diff --git a/lib/cartodb/cache/named_map_provider_cache.js b/lib/cartodb/cache/named_map_provider_cache.js index e738ede3..ea24f2f5 100644 --- a/lib/cartodb/cache/named_map_provider_cache.js +++ b/lib/cartodb/cache/named_map_provider_cache.js @@ -26,7 +26,7 @@ module.exports = class NamedMapProviderCache { this.providerCache = new LruCache({ max: 2000, maxAge: TEN_MINUTES_IN_MILLISECONDS }); - ACTIONS.forEach(action => templateMaps.on(action, (...args) => this.invalidate(...args))); + ACTIONS.forEach(action => templateMaps.on(action, (user, templateId) => this.invalidate(user, templateId))); } get (user, templateId, config, authToken, params, callback) {