Cache / HasCacheViewHelper
This is a ViewHelper to check, if a cache entry exists.
General properties
Name | Required | Type |
---|---|---|
string | ||
true | PoiCollection |
prefix
-
- Type
- string
If you want you can define a prefix for the generated CacheIdentifier. Leave this value empty to use "infoWindow" as default value
poiCollection
-
- Type
- PoiCollection
- Required
true
You must assign the PoiCollection object to this ViewHelper. We extract some data from PoiCollection to build a more unique CacheIdentifier which can differ Caches in multilingual environment.
Examples
Basic example
<f:if condition="{maps2:cache.hasCache(poiCollection: poiCollection)}">
<f:then>
</f:then>
<f:else>
</f:else>
</f:if>
Copied!