Add pending test for X-Cache-Channel on tiler restart (#152)

This commit is contained in:
Sandro Santilli
2014-02-18 18:33:00 +01:00
parent 719346a472
commit 3c09be64ce
2 changed files with 121 additions and 2 deletions
+4 -2
View File
@@ -241,7 +241,8 @@ module.exports = function(){
me.affectedTables(username, req.params.map_key, sql, function(err, tableNames) {
if ( err ) { callback(err); return; }
var cacheChannel = me.buildCacheChannel(dbName,tableNames);
me.channelCache[cacheKey] = cacheChannel; // store for caching
// store for caching from me.generateCacheChannel
me.channelCache[cacheKey] = cacheChannel;
callback(null, cacheChannel);
});
};
@@ -335,7 +336,8 @@ module.exports = function(){
if ( err ) { done(err); return; }
var cacheChannel = me.buildCacheChannel(dbName,tableNames);
me.channelCache[cacheKey] = cacheChannel; // store for caching
// store for caching from me.afterLayergroupCreate
me.channelCache[cacheKey] = cacheChannel;
// find last updated
me.findLastUpdated(usr, key, tableNames, function(err, lastUpdated) {
if (req.profiler) req.profiler.done('findLastUpdated');