caches()
Description
Tells Wheels to cache one or more actions.
Function Syntax
caches([ action, time, static ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
action |
string |
No | |
Action(s) to cache. This argument is also aliased as actions. |
time |
numeric |
No | 60 |
Minutes to cache the action(s) for. |
static |
boolean |
No | false |
Set to true to tell Wheels that this is a static page and that it can skip running the controller filters (before and after filters set on actions) and application events (onSessionStart, onRequestStart etc). |
Examples
<cfset caches(actions="browseByUser,browseByTitle", time=30)>
