You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Browser Caching

A web cache is a mechanism for the temporary storage (caching) of web documents, such as HTML pages and images, to reduce bandwidth usage, server load, and perceived lag. For example, when an image is viewed on a web page, it will be downloaded to the user's PC or device. If this image is viewed again on the same site, it will use the image on the user's PC or device rather than download it again. The cache will always have a timeout on it, meaning that after a pre-defined period of time, the PC or device will look to the server and download the file again just in case it has changed.

Customer Self Service employs web caching on various pages, files and templates across the site. Content may be cached based on the user session or role, or it may be cached locally by the user's web browser.  A breakdown of each type is shown in the table below.

CSS Cache TypeExampleCache Timeout
System SettingsSettings maintained by the Administrator via CMS screens. These include general site settings and system resources.Nightly (live sites)
TemplatesAny files modified with the Template Editor, as well as changes to the product menu (e.g. adding a new category in the ERP).Every 7 days
User/Customer/RoleRole flags found on the 'Functions' tab in Role Maintenance, such as 'Allow bonus items', or Customer settings such as 'Credit Card Payments for Orders'.Per login session. User must log out and back in again.
Images/DocumentsProduct images, PDF downloads.Every 7 days

 

Refreshing the Cache

Each cache type requires its own refresh process:

  • BROWSER - To force a cache refresh at browser level, simply use the keyboard shortcut CTRL+F5. This will refresh JavaScript files, images, and style sheets.
  • PRICING - To force a cache refresh of product pricing (for sites not using Live Pricing), see Resetting the Price Cache.
  • PRODUCTS - To force a cache refresh of products, including stock security records, see Resetting the Product Cache.
  • CSS SETTINGS & TEMPLATES - To force a cache refresh of site templates, role or system settings, follow the guide below.  

Step-by-step guide

To Force a CSS Cache Refresh:

  1. Login as an Administrator.
  2. Navigate to 'Settings' --> 'Dictionary' (/Dictionary.aspx).
  3. Tick the box for the required cache (eg 'Templates' or 'System Control'). The 'Toggle All' button will tick/untick all options. 
  4. Click the 'RefreshCache' button.
  5. A confirmation message will be displayed once the refresh is complete. 

 

 

  • No labels