LassoScript Utility
Basics Browse Detail


Tag Link [Cache_Exists] Category Utility
Type Substitution Source Available Yes
Support Preferred Version 8.1
Change Unchanged Data Source Any
Output Type None Security Tag
Implementation LDML Sets Lasso 8.5, Lasso 8.0


[Cache_Exists] checks whether a given cache contains current content. This tag accepts the same parameters as the opening [Cache] tag. It returns true if the [Cache] ... [/Cache] container would return cached content or false otherwise.

Requires a -Name parameter which specifies the name of the cache. An optional -Session parameter specifies the session that contains the cache, if applicable.


[Cache_Exists: -Name='MyCache']


Required Parameters
-Name The name of the cache to be checked.
Optional Parameters
-Expires The expiration (in seconds) to be checked. If the cached content was created within this many minutes then the tag will return true.
-UseGlobal If a -Session is specified then -UseGlobal can be specified so that both the session and the global cache storage are checked.
-Session Specifies the name of the session that stores the cache.


See the Lasso 8 Language Guide for examples of how to use this tag.