HTTP:cache_hits(t)
Checks the cache hit count for the specified URI.
Syntax
HTTP:cache_hits(t);
Arguments
| Name | Description |
|---|---|
|
t |
A table which specifies the cached URI. |
Events
Applicable in the following events:
-
HTTP_REQUEST
-
HTTP_RESPONSE
Example
when HTTP_REQUEST {
t={}
t["uri"] = "/3.htm";
ret=HTTP:cache_hits(t)
if ret then
debug("cache hit count %s\n", ret);
else
debug("not cached\n");
end
}
Supported Version
FortiADC version 5.3.x and later.