Clearing the cache

We have a number of users using the simple editor which has been good but there are some limitations.


Caching is currently set at around 2 hours so when a user changes something they do not see the change on the live copy so sometimes they think they have missed a step.



Can these users clear the cache using a URL contain a relevant asset id?

No, but you can configure a trigger to clear the cache for your users.

[quote]No, but you can configure a trigger to clear the cache for your users.
[right][post=“14064”]<{POST_SNAPBACK}>[/post][/right][/quote]



Is that clearing the cache on the entire system?

[quote]Is that clearing the cache on the entire system?
[right][post=“14067”]<{POST_SNAPBACK}>[/post][/right][/quote]



I wouldn’t recommend that! Usually we just configure the trigger to clear the cache on the particular asset that has been updated.

[quote]I wouldn’t recommend that! Usually we just configure the trigger to clear the cache on the particular asset that has been updated.
[right][post=“14068”]<{POST_SNAPBACK}>[/post][/right][/quote]



Here’s a thread with some more info:

http://forums.matrix.squiz.net/index.php?showtopic=2677&hl=

Once the user has added the required information, it would be a good idea to use the /_nocache,after the URL.


Example: The page to be edited is www.myname.co.uk/aboutme

Once the changes are done and saved, the user can check the changes as made by accessing the page as:-

www.myname.co.uk/aboutme/_nocache.

Note that Amit's suggestion just shows you the uncached version of the page – it doesn't actually clear the cache for that page.

I was hoping for a URL like the /_nocache but maybe /_clearcache but I think we will try the triggers option as suggested by Dale.


Thanks

Using triggers, you could construct a /_clearcache URL. The condition would listen for /_clearcache and then clear the cache on the current asset.