Skip to content

Controller

clearCachableActions()

clearCachableActions() — returns void

Available in: controller Category: Configuration Functions

Removes one or more actions from the list of cacheable actions in a controller. Use this when you want to prevent previously cached actions from being cached or to reset caching for certain actions.

NameTypeRequiredDefaultDescription
actionstringnoAction(s) to remove from cache.
1. Clear a single action from cache
clearCachableActions("termsOfUse");

2. Clear multiple actions from cache
clearCachableActions(actions="termsOfUse,codeOfConduct");

3. Clear all cacheable actions in the controller
clearCachableActions();