Force evaluation of lazy tags during caching
This commit is contained in:
parent
d2176fc95b
commit
e38b14b77a
2 changed files with 9 additions and 2 deletions
|
@ -28,7 +28,8 @@ export default class MetaTagging {
|
||||||
state?: { allElements?: ElementStorage },
|
state?: { allElements?: ElementStorage },
|
||||||
options?: {
|
options?: {
|
||||||
includeDates?: true | boolean,
|
includeDates?: true | boolean,
|
||||||
includeNonDates?: true | boolean
|
includeNonDates?: true | boolean,
|
||||||
|
evaluateStrict?: false | boolean
|
||||||
}): boolean {
|
}): boolean {
|
||||||
if (features === undefined || features.length === 0) {
|
if (features === undefined || features.length === 0) {
|
||||||
return;
|
return;
|
||||||
|
@ -72,6 +73,11 @@ export default class MetaTagging {
|
||||||
}
|
}
|
||||||
somethingChanged = true;
|
somethingChanged = true;
|
||||||
metatag.applyMetaTagsOnFeature(feature, freshness, layer, state)
|
metatag.applyMetaTagsOnFeature(feature, freshness, layer, state)
|
||||||
|
if(options?.evaluateStrict){
|
||||||
|
for (const key of metatag.keys) {
|
||||||
|
feature.properties[key]
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const newValueAdded = metatag.applyMetaTagsOnFeature(feature, freshness, layer, state)
|
const newValueAdded = metatag.applyMetaTagsOnFeature(feature, freshness, layer, state)
|
||||||
/* Note that the expression:
|
/* Note that the expression:
|
||||||
|
|
|
@ -225,7 +225,8 @@ function sliceToTiles(allFeatures: FeatureSource, theme: LayoutConfig, relations
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
includeDates: false,
|
includeDates: false,
|
||||||
includeNonDates: true
|
includeNonDates: true,
|
||||||
|
evaluateStrict: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue