Make templateMaps available in cartodb windshaft

This commit is contained in:
Raul Ochoa
2015-01-30 16:51:09 +01:00
parent 358b296750
commit 8b07156a2d

View File

@@ -23,6 +23,8 @@ var CartodbWindshaft = function(serverOptions) {
var cartoData = require('cartodb-redis')({pool: redisPool});
var templateMaps = serverOptions.templateMaps;
if(serverOptions.cache_enabled) {
console.log("cache invalidation enabled, varnish on ", serverOptions.varnish_host, ' ', serverOptions.varnish_port);
Cache.init(serverOptions.varnish_host, serverOptions.varnish_port, serverOptions.varnish_secret);
@@ -150,13 +152,7 @@ var CartodbWindshaft = function(serverOptions) {
var TemplateMapsController = require('./controllers/template_maps'),
templateMapsController = new TemplateMapsController(
ws,
serverOptions,
serverOptions.templateMaps,
cartoData,
template_baseurl,
surrogateKeysCache,
NamedMapsCacheEntry
ws, serverOptions, templateMaps, cartoData, template_baseurl, surrogateKeysCache, NamedMapsCacheEntry
);
templateMapsController.register(ws);