commenting and removal of bogus config. also disable cache in test environment

This commit is contained in:
Simon Tokumine 2012-06-06 15:24:44 +01:00
parent a382b9f601
commit 98e5bab8e4
4 changed files with 7 additions and 4 deletions

View File

@ -14,7 +14,6 @@ var config = {
extent: "-180,-90,180,90",
srid: 4326,
*/
/* max_size: 0, */ /* see https://github.com/Vizzuality/Windshaft-cartodb/issues/16 */
simplify: true
}
,redis: {

View File

@ -3,7 +3,7 @@ var config = {
,port: 8888
,host: '127.0.0.1'
,enable_cors: true
,cache_enabled: true
,cache_enabled: false
,postgres: {
user: "tileuser",
host: '127.0.0.1',

View File

@ -38,7 +38,7 @@ function generateCacheChannel(req, callback){
if (!_.isNull(channelCache[sql_md5]) && !_.isUndefined(channelCache[sql_md5])) {
callback(channelCache[sql_md5]);
} else{
// strip out windshaft/mapnik inserted sql
// strip out windshaft/mapnik inserted sql if present
var sql = req.params.sql.match(/^\((.*)\)\sas\scdbq$/);
sql = (sql != null) ? sql[1] : req.params.sql;

View File

@ -194,3 +194,7 @@ tests["get'ing a tile with default style and complex sql should return a constra
headers: { 'Content-Type': 'image/png' }
});
};