Cache / SetCacheViewHelper¶
This is a ViewHelper to set a new cache entry.
Type: Basic
General properties¶
Property | Data type | Default |
---|---|---|
prefix | String | infoWindow |
poiCollection | PoiCollection | |
data | String | |
tags | Array | Empty Array |
lifetime | Integer | NULL |
prefix¶
If you want you can define a prefix for the generated CacheIdentifier. Leave this value empty to use “infoWindow” as default value
poiCollection¶
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.
data¶
The data as string which has to be stored.
tags¶
You can define some additional CacheEntryTags if you want. By default we add two additional Cache Tags named “infoWindowUid{PoiCollectionUid}” and “infoWindowPid{PoiCollectionPid}”
lifetime¶
How long (in seconds) the CacheEntry should be available, before it will be re-generated? Keep this value empty to use the Default Value of Storage-Backend. 0 for unlimited.