diff --git a/lib/api/api-router.js b/lib/api/api-router.js index 142c3eba..b3ff84cc 100644 --- a/lib/api/api-router.js +++ b/lib/api/api-router.js @@ -86,6 +86,7 @@ module.exports = class ApiRouter { const windshaftLogger = environmentOptions.log_windshaft && global.log4js ? global.log4js.getLogger('[windshaft]') : null; + const mapStore = new windshaft.storage.MapStore({ pool: redisPool, expire_time: serverOptions.grainstore.default_layergroup_ttl, diff --git a/test/acceptance/ported/support/ported-server-options.js b/test/acceptance/ported/support/ported-server-options.js index ea84a4d2..a54d08a5 100644 --- a/test/acceptance/ported/support/ported-server-options.js +++ b/test/acceptance/ported/support/ported-server-options.js @@ -16,7 +16,8 @@ module.exports = _.extend({}, serverOptions, { }, cachedir: global.environment.millstone.cache_basedir, mapnik_version: global.environment.mapnik_version || mapnik.versions.mapnik, - gc_prob: 0 // run the garbage collector at each invocation + gc_prob: 0, // run the garbage collector at each invocation + default_layergroup_ttl: global.environment.mapConfigTTL || 7200 }, renderer: { mapnik: {