Views:

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

 
Running this script will restart the HTTP daemon, which is the main scanning service.
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:

  1. Log on to IWSVA either directly or with SSH as "root".
  2. Open the crontab file for the user iscan:

    crontab -e -u iscan

  3. Add a line to the crontab file. The crontab editor works analogue to vim. Refer to this article for further instructions.
    1. 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

    2. Save the changes and close the file.
  4. 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:

  1. Log on to IWSVA either directly or with SSH as "root".
  2. Open and edit the file /etc/iscan/urlfcIFX.ini as described in this article.
    1. Change the value of the parameter "SetCacheLife" from "no" to "yes".
    2. Edit the value of the parameter "CacheLife". The value is in minutes.
    3. Save the changes and close the file.
  3. 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