From 8c2e5f74dfb7b496545628884a1503745af03672 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Tue, 27 Jun 2017 13:14:13 +0200 Subject: [PATCH] Add tableCacheEnabled setting to sample config #422 --- config/environments/development.js.example | 4 ++++ config/environments/production.js.example | 4 ++++ config/environments/staging.js.example | 4 ++++ config/environments/test.js.example | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 2d4727b7..43f3588e 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -79,10 +79,14 @@ module.exports.redisPool = 50; module.exports.redisIdleTimeoutMillis = 100; module.exports.redisReapIntervalMillis = 10; module.exports.redisLog = false; + +// tableCache settings +module.exports.tableCacheEnabled = false; // false by default // Max number of entries in the query tables cache module.exports.tableCacheMax = 8192; // Max age of query table cache items, in milliseconds module.exports.tableCacheMaxAge = 1000*60*10; + // Temporary directory, make sure it is writable by server user module.exports.tmpDir = '/tmp'; // change ogr2ogr command or path diff --git a/config/environments/production.js.example b/config/environments/production.js.example index d8b0dae2..21726fc1 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -80,10 +80,14 @@ module.exports.redisPool = 50; module.exports.redisIdleTimeoutMillis = 10000; module.exports.redisReapIntervalMillis = 1000; module.exports.redisLog = false; + +// tableCache settings +module.exports.tableCacheEnabled = false; // false by default // Max number of entries in the query tables cache module.exports.tableCacheMax = 8192; // Max age of query table cache items, in milliseconds module.exports.tableCacheMaxAge = 1000*60*10; + // Temporary directory, make sure it is writable by server user module.exports.tmpDir = '/tmp'; // change ogr2ogr command or path diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 90729fed..06f0ad77 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -80,10 +80,14 @@ module.exports.redisPool = 50; module.exports.redisIdleTimeoutMillis = 10000; module.exports.redisReapIntervalMillis = 1000; module.exports.redisLog = false; + +// tableCache settings +module.exports.tableCacheEnabled = false; // false by default // Max number of entries in the query tables cache module.exports.tableCacheMax = 8192; // Max age of query table cache items, in milliseconds module.exports.tableCacheMaxAge = 1000*60*10; + // Temporary directory, make sure it is writable by server user module.exports.tmpDir = '/tmp'; // change ogr2ogr command or path diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 152b86b4..3f0fcf4d 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -77,10 +77,14 @@ module.exports.redisPool = 50; module.exports.redisIdleTimeoutMillis = 1; module.exports.redisReapIntervalMillis = 1; module.exports.redisLog = false; + +// tableCache settings +module.exports.tableCacheEnabled = true; // false by default. We want to make sure some functionallity is there until we fully deprecate it. // Max number of entries in the query tables cache module.exports.tableCacheMax = 8192; // Max age of query table cache items, in milliseconds module.exports.tableCacheMaxAge = 1000*60*10; + // Temporary directory, make sure it is writable by server user module.exports.tmpDir = '/tmp'; // change ogr2ogr command or path