Set cache buster equal to 0 when there is no affected tables in the mapconfig

This commit is contained in:
Daniel García Aubert 2020-06-09 12:21:47 +02:00
parent a19e9a79b8
commit 9c21194c68

View File

@ -11,6 +11,10 @@ module.exports = function setLastUpdatedTimeToLayergroup () {
} }
if (!affectedTables) { if (!affectedTables) {
res.locals.cache_buster = 0;
layergroup.layergroupid = `${layergroup.layergroupid}:${res.locals.cache_buster}`;
layergroup.last_updated = new Date(res.locals.cache_buster).toISOString();
return next(); return next();
} }