Tag Link | [Cache] ... | Category | Utility |
---|---|---|---|
Type | Container | Source Available | Yes |
Support | Preferred | Version | 7.0 |
Change | Updated | Data Source | Any |
Output Type | String | Security | Tag |
Implementation | LassoScript | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Container tag used for caching page data in Lasso's internal cache. Requires a
Note that if a
[Cache:
Required Parameters | |
---|---|
-Name | Specifies the name of the cache. The name of the cache identifies the cached contents so it can be referenced on several pages. This is the only required parameter. |
Optional Parameters | |
-Expires | Specifies how many seconds the cached contents should last. If the cached contents is older than the time interval specified, then new content values will be cached on the next page load. The |
-Condition | Allows arbitrary refresh conditions to be specified. Accepts a boolean value of True or False and refreshes the contents immediately when True. Conditional expressions may be used to output the required True or False value. For example, |
-Session | Specifies the name of a session that the cached content should be stored in. This allows the cached content to be user specific. If no |
-UseGlobal | Can be used in concert with |
The
To cache content with no expiration:
Use the [Cache] ... [/Cache] tags without the
[Cache:
[Inline:
[Records]
[Field:'First_Name'] [Field:'Last_Name'] - [Field:'Company']<br>
[/Records]
[/Inline]
[/Cache]