You are viewing documentation for v1.0.x. Change

caches()

Description

Tells Wheels to cache one or more actions.

Function Syntax

caches([ actions, time ])

Parameters

Parameter Type Required Default Description
actions string No Action(s) to cache (can also be called with the action argument).
time numeric No 60 Minutes to cache the action(s) for.

Examples

<cfset caches(actions="browseByUser,browseByTitle", time=30)>