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

remotes/origin/juanra/docker-dev-env-tests
Daniel García Aubert 4 years ago
parent a19e9a79b8
commit 9c21194c68

@ -11,6 +11,10 @@ module.exports = function setLastUpdatedTimeToLayergroup () {
}
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();
}

Loading…
Cancel
Save