Shared cache for affected tables in layergroup and map controllers

This commit is contained in:
Raul Ochoa
2015-07-14 13:40:41 +02:00
parent c295584864
commit e8b5845174
8 changed files with 120 additions and 63 deletions
+4
View File
@@ -15,6 +15,10 @@ DatabaseTables.prototype.key = function() {
}.bind(this));
};
DatabaseTables.prototype.getCacheChannel = function() {
return this.dbName + ':' + this.tableNames.join(',');
};
function shortHashKey(target) {
return crypto.createHash('sha256').update(target).digest('base64').substring(0,6);
}