Fortinet white logo
Fortinet white logo

CLI Reference

icap-cache-clear

icap-cache-clear

ICAP server receives files from FortiWeb to verify whether the files pose a threat and returns the results to FortiWeb. The results are stored in FortiWeb cache for a certain period so that during then FortiWeb does not re-submit the file to ICAP server.

Use this command to clear ICAP cache. You can specify the hash value of the file to clear the cached results for specific files, or clear all cache.

To use this command, your administrator account’s access control profile must have either w or rw permission to the sysgrp area. For details, see Permissions.

Syntax

execute icap-cache-clear sha256 <sha256 strings of file1> <sha256 strings of file2> ...

execute icap-cache-clear all

Variable Description Default

<sha256 strings of file1> <sha256 strings of file2> ...

Enter the sha256 strings of the files to be cleared. Up to 32 hash value strings are allowed.

No default.

all

Clear all cache. No default.

Example

FortiWeb # execute icap-cache-clear sha256 XXXXXXXXXXXXX XXXXXXXXXXXXXX

FortiWeb # execute icap-cache-clear all

icap-cache-clear

icap-cache-clear

ICAP server receives files from FortiWeb to verify whether the files pose a threat and returns the results to FortiWeb. The results are stored in FortiWeb cache for a certain period so that during then FortiWeb does not re-submit the file to ICAP server.

Use this command to clear ICAP cache. You can specify the hash value of the file to clear the cached results for specific files, or clear all cache.

To use this command, your administrator account’s access control profile must have either w or rw permission to the sysgrp area. For details, see Permissions.

Syntax

execute icap-cache-clear sha256 <sha256 strings of file1> <sha256 strings of file2> ...

execute icap-cache-clear all

Variable Description Default

<sha256 strings of file1> <sha256 strings of file2> ...

Enter the sha256 strings of the files to be cleared. Up to 32 hash value strings are allowed.

No default.

all

Clear all cache. No default.

Example

FortiWeb # execute icap-cache-clear sha256 XXXXXXXXXXXXX XXXXXXXXXXXXXX

FortiWeb # execute icap-cache-clear all