Merge pull request #1141 from CartoDB/fix-undefinded-layergroupTTL
Fix undefinded layergroup ttl
This commit is contained in:
commit
3c301ce742
@ -86,6 +86,7 @@ module.exports = class ApiRouter {
|
|||||||
const windshaftLogger = environmentOptions.log_windshaft && global.log4js ?
|
const windshaftLogger = environmentOptions.log_windshaft && global.log4js ?
|
||||||
global.log4js.getLogger('[windshaft]') :
|
global.log4js.getLogger('[windshaft]') :
|
||||||
null;
|
null;
|
||||||
|
|
||||||
const mapStore = new windshaft.storage.MapStore({
|
const mapStore = new windshaft.storage.MapStore({
|
||||||
pool: redisPool,
|
pool: redisPool,
|
||||||
expire_time: serverOptions.grainstore.default_layergroup_ttl,
|
expire_time: serverOptions.grainstore.default_layergroup_ttl,
|
||||||
|
@ -16,7 +16,8 @@ module.exports = _.extend({}, serverOptions, {
|
|||||||
},
|
},
|
||||||
cachedir: global.environment.millstone.cache_basedir,
|
cachedir: global.environment.millstone.cache_basedir,
|
||||||
mapnik_version: global.environment.mapnik_version || mapnik.versions.mapnik,
|
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: {
|
renderer: {
|
||||||
mapnik: {
|
mapnik: {
|
||||||
|
Loading…
Reference in New Issue
Block a user