Set cache buster equal to 0 when there is no affected tables in the mapconfig
This commit is contained in:
parent
a19e9a79b8
commit
9c21194c68
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user