Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:dyn_cache_invalid(t)

HTTP:dyn_cache_invalid(t)

Invalidates a given dynamic cache indexed by its ID.

Syntax

HTTP:dyn_cache_invalid(t);

Arguments

Name Description

t

A table which specifies the cache ID.

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
t={}
t["id"] = 1      --between 1 and 1023
ret = HTTP:dyn_cache_invalid(t);
}

Supported Version

FortiADC version 5.3.x and later.

HTTP:dyn_cache_invalid(t)

HTTP:dyn_cache_invalid(t)

Invalidates a given dynamic cache indexed by its ID.

Syntax

HTTP:dyn_cache_invalid(t);

Arguments

Name Description

t

A table which specifies the cache ID.

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
t={}
t["id"] = 1      --between 1 and 1023
ret = HTTP:dyn_cache_invalid(t);
}

Supported Version

FortiADC version 5.3.x and later.