commenting and removal of bogus config. also disable cache in test environment
This commit is contained in:
parent
a382b9f601
commit
98e5bab8e4
@ -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: {
|
||||
|
@ -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',
|
||||
|
@ -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;
|
||||
|
||||
|
@ -193,4 +193,8 @@ tests["get'ing a tile with default style and complex sql should return a constra
|
||||
status: 200,
|
||||
headers: { 'Content-Type': 'image/png' }
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user