what would be required to add the functionality to accept another variable via the URL to clear the cache for that particualr url?
e.g. In the same way as ?no_cache=1 bypasses the cached data in the file system, ?clear_cahce=1 would take the URL (http://www.squiz.com/a_folder/an_asset/?clear_cache=1 would take the url http://www.squiz.com/a_folder/an_asset/) do a quick scan of the buckets in the cache directory and unlink all files ending in *:md5(serialize(URL)). This would allow a very quick and easy way of clearing the cache of an entire page and not having to clear the cache of each individual asset that makes up that page. Also, doing this at a purely file system level should make the process extremely quick.
I have performed this process manually and it seems sound, I am just curious to know if anyone has any insights as to adding it to the matrix core.
Cheers
[quote]This would allow a very quick and easy way of clearing the cache of an entire page and not having to clear the cache of each individual asset that makes up that page. Also, doing this at a purely file system level should make the process extremely quick.
[right][post=“7534”]<{POST_SNAPBACK}>[/post][/right][/quote]
This may work on very basic page assets (a standard page, with a single content div), as soon as you have anything more complex, like a standard page with a nested content div, or an asset listing, you’re going to have problems.
For example, a nested content div doesn’t cache itself, it relies on the asset its listing to cache itself. So, in that case, the source asset’s cache will not be cleared.
We are aware of the issues with the current Cache Manager and we are working on ideas to make clearing the cache more immediate and intelligent.
THanks for your comments, they were very insightful 
I have only tried this method of clearing the cache with Pages that contain Nested Asset listings (not nested divs). It appears to work well in these cases but I can understand your the points you made 