There are two (2) options to clear the cache. Do any of the following:
Option A. Create a cron job
You can set up a cron job to clear the URL filtering cache on a regular basis. The script for clearing the URL filtering cache is the following:
/etc/iscan/clearURLCache.sh /etc/iscan/tmufe
This will interrupt internet access for the users.
To set up a cron job, add a line to the crontab file for the user iscan:
- Log on to IWSVA either directly or with SSH as "root".
- Open the crontab file for the user iscan:
crontab -e -u iscan
- Add a line to the crontab file. The crontab editor works analogue to vim. Refer to this article for further instructions.
- Assuming that you would like to clear the cache once a day at 2:15 AM, you need to add the following line at the bottom of the file:
15 2 * * * /etc/iscan/clearURLCache.sh /etc/iscan/tmufe > /dev/null 2>&1
- Save the changes and close the file.
- Assuming that you would like to clear the cache once a day at 2:15 AM, you need to add the following line at the bottom of the file:
- Run the command below to check that the job was added:
crontab -l -u iscan
Option B. Set the lifetime for the cache entries
You can define the lifetime for the entries in the URL filtering cache on IWSVA. By default, IWSVA does not limit the lifetime of an entry. Instead, the lifetime of an entry is set by the rating server and may vary for different URLs.
To manually set the lifetime for the entries in URL filtering cache:
- Log on to IWSVA either directly or with SSH as "root".
- Open and edit the file /etc/iscan/urlfcIFX.ini as described in this article.
- Change the value of the parameter "SetCacheLife" from "no" to "yes".
- Edit the value of the parameter "CacheLife". The value is in minutes.
- Save the changes and close the file.
- Restart the HTTP daemon for the changes to take effect. Restarting the HTTP daemon will cause service interruption so schedule appropriately.
/etc/iscan/S99ISproxy stop && /etc/iscan/S99ISproxy start