ltm rule command CACHE disabled
iRule(1) BIG-IP TMSH Manual iRule(1)
CACHE::disabled
Returns state of cache disable flag
SYNOPSIS
CACHE::disabled
DESCRIPTION
Returns 1 for cache disabled, 0 otherwise.
CACHE::disabled
* Returns true (1) or false (0) to indicate state of cache disable flag.
RETURN VALUE
Returns 0 or 1.
VALID DURING
HTTP_REQUEST, HTTP_RESPONSE
EXAMPLES
when HTTP_REQUEST {
if { [HTTP::header exists X-NoCache] } {
CACHE::disable
log local0. "Disable cache."
}
}
when HTTP_RESPONSE {
set val [CACHE::disabled]
log local0. "Cache disable state: $val"
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.3 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)