Home > Configuration > Integrated Caching > setcachepolicy_action

setcachepolicy_action

Use this method to set action to apply to content that matches the policy.
* CACHE or MAY_CACHE action - positive cachability policy
* NOCACHE or MAY_NOCACHE action - negative cachability policy
* INVAL action - Dynamic Invalidation Policy

Syntax



Parameters

policyname

Name for the policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the policy is created.
This is mandatory parameter.

actioN

Action to apply to content that matches the policy. * CACHE or MAY_CACHE action - positive cachability policy * NOCACHE or MAY_NOCACHE action - negative cachability policy * INVAL action - Dynamic Invalidation Policy
Possible Values : CACHE, NOCACHE, MAY_CACHE, MAY_NOCACHE, INVAL.

Return Value

Returns simpleResult

See Also