Back
caches()
Tells CFWheels to cache one or more actions.
// Cache the `termsOfUse` action.
caches("termsOfUse");
// Cache the `termsOfUse` action for 30 minutes.
caches(actions="browseByUser, browseByTitle", time=30);
// Cache the `termsOfUse` and `codeOfConduct` actions, including their filters.
caches(actions="termsOfUse, codeOfConduct", static=true);
// Cache content separately based on region.
caches(action="home", key="request.region");
Copied!