Clear Squid cache tool

Squid is a caching proxy for the web that improves response times by caching and reusing frequently-requested web pages.

The clear Squid cache tool allows users to clear or repopulate the Matrix Squid cache for an asset. A one-off or repeating scheduled job can also be created and scheduled using this tool.

This tool relies on initially configuring the Squid cache in the System configuration  External tools  Squid cache preferences settings.
You must configure these settings before using this tool. Read External tools configuration for more information about this screen.

Settings

This section allows you to clear the Squid cache for a particular asset and its children.

The Clear Squid cache section of the Clear Squid cache screen

You select one or more options explained below and then click Clear Cache to clear the conditions in the cache for the selected assets.

The fields that are available on this screen are as follows:

Assets

Select which asset’s cache to clear. Squid cache will be cleared for all URLs applied to the specified asset.

Clear this cache now

Select this field and click Clear Cache to clear the asset’s cache specified in the asset field.

Clear the cache of the selected assets and its children

Select whether also to clear the cache of the children of the asset.

Request each URL after the purge action so that Squid can recache it

Select this option to re-cache the asset once its cache has been cleared.

Schedule a cache clearing job

Select this option and click Clear Cache to create a clearing schedule for the selected assets and conditions. Read Job scheduling for more information about this feature.

Clear cache of arbitrary URLs

This section allows you to clear the Squid cache for arbitrary URLs.

The clear cache of arbitrary URLs section of the Clear Squid cache screen

This method is useful if you want to clear the Squid cache on URLs that are not associated with an asset, such as a 301 remap or 404 pages.

To clear the cache for arbitrary URLs:

  1. Enter each page’s URLs to clear the cache and enter each URL on a new line.

  2. Click Clear Cache to clear all cache records for the URLs.

Job scheduling

This section allows you to schedule a scheduled job to refresh the Squid cache based on the settings you have selected.

The schedule clear cache scheduled job (matrix) section

You can schedule either a one-off scheduled job or a repeating scheduled job.

The fields available are as follows:

Schedule a one-off job

Use the following field combinations to schedule a one-off scheduled job:

  1. Select the date and times when the Squid cache should be cleared from the list provided.

  2. Click Next run to set the date and time to the next run of the scheduled jobs manager.

  3. Set the scheduled job to take place in a certain number of minutes, hours, days, weeks, months, or years. Enter the number into the text box and select the appropriate time frame from the list provided.

Schedule a repeating job

If you want to repeat the scheduled job,

  1. Set the schedule using the field combinations in Schedule a one-off job.

  2. Select a repeat precision from minutes, hours, and days.

  3. Enter the time between runs in the fields provided.

    For example, if you want to clear the Squid cache of the home page every two days, enter 2 days in this section.

  4. Click Next run to set the date and time to the next run of the scheduled jobs manager.