diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 644fea48..df2273c7 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -205,11 +205,12 @@ var config = { // much closer to the original geometry removeRepeatedPoints: false // this requires postgis >=2.2 }, - // If enabled Mapnik will reuse the features retrieved from the database // instead of requesting them once per style inside a layer - 'cache-features': true + 'cache-features': true, + // Require metrics to the renderer + metrics: false }, http: { timeout: 2000, // the timeout in ms for a http tile request diff --git a/config/environments/production.js.example b/config/environments/production.js.example index db18d93c..9f7436df 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -202,7 +202,10 @@ var config = { // If enabled Mapnik will reuse the features retrieved from the database // instead of requesting them once per style inside a layer - 'cache-features': true + 'cache-features': true, + + // Require metrics to the renderer + metrics: false }, http: { diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index b478ca80..66c5a88c 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -202,7 +202,10 @@ var config = { // If enabled Mapnik will reuse the features retrieved from the database // instead of requesting them once per style inside a layer - 'cache-features': true + 'cache-features': true, + + // Require metrics to the renderer + metrics: false }, http: { diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 776166e5..0c98c4b6 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -201,8 +201,10 @@ var config = { // If enabled Mapnik will reuse the features retrieved from the database // instead of requesting them once per style inside a layer - 'cache-features': true + 'cache-features': true, + // Require metrics to the renderer + metrics: false }, http: { timeout: 2000, // the timeout in ms for a http tile request diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index 25e60c2f..1891e208 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -15,6 +15,7 @@ var rendererConfig = _.defaults(global.environment.renderer || {}, { bufferSize: 64, snapToGrid: false, clipByBox2d: false, + metrics: false, limits: {} }, http: {} diff --git a/test/acceptance/ported/support/ported_server_options.js b/test/acceptance/ported/support/ported_server_options.js index 8604e68c..8b75ec02 100644 --- a/test/acceptance/ported/support/ported_server_options.js +++ b/test/acceptance/ported/support/ported_server_options.js @@ -27,6 +27,7 @@ module.exports = _.extend({}, serverOptions, { snapToGrid: false, clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5 scale_factors: [1, 2], + metrics: false, limits: { render: 0, cacheOnTimeout: true