Caching problem maybe


(Gab) #1

v5.3.2.1
Hi - just wondering if anyone else has had this problem. I am updating pdfs in an asset listing. The webpage does not show the newer version. I have fixed my caching and refreshed numerous times. The only time it does show the newer pdf is when I close down all my internet explorer pages as well as Squiz Matrix. I then have to log in again, open IE and start again. I then have to shut down everything. Any assistance or suggestions would be appreciated.


(Phillip Booth) #2

Here’s a few options:

  • Hold shift key and refresh the page
  • append /_nocache to the end of the URL (web address)
  • or append /_recache to the URL

Let us know how you go.


(Dcook) #3

If it’s a page that you expect to update often, you could also consider setting specific cache rules to help make sure users are seeing a fresh version.

See the Cache Manager: Root Nodes
https://matrix.squiz.net/manuals/system-management/chapters/cache-manager#Root-Node-Specific-Screen


(Gab) #4

The append /_nocache does not work. The pages are just random pages with word documents or pdfs etc.


(Benjamin Cardenas) #5

Hi Gab,
This helped us with caching assets as they were updated: https://matrix.squiz.net/manuals/triggers/examples/configuring-a-trigger-to-clear-the-cache-of-an-asset

Every time any asset is updated, the system clears its cache.

Squiz also built a secondary trigger to clear the Squid cache (whatever that is =) with the following settings:

Events:
Asset Recached
Matrix Cache Cleared

Conditions:
[empty]

Actions:
Clear Squid Cache (set to Ignore permissions and Non-Critical. Action on other assets is not checked).

Hope it helps,

Ben


(Anthony Ponomarenko) #6

Also as of 5.4.0.0, there is a setting in Cache Manager to automatically clear Matrix cache - https://matrix.squiz.net/releases/5.4/5.4.0.0#automatic-cache-clearing


(Douglas (@finnatic at @waikato)) #7

If it’s a PDF, you may also want to check into how the browsers affected cache PDF files and what browser caching headers are being sent.

In our experience, some browsers are very greedy in caching PDF files well after they’ve been updated on the websites that people are accessing to get them.