Matrix clear cache tool urls with wildcard


(Gjboyd7) #1

Is it possible to use the matrix cache tool or a unix command to clear the cache for urls with a large varying amount of url parameters, for example :

https://www.university-website.ac.uk/your-course?h=84747474
https://www.university-website.ac.uk/your-course?h=12434353. <- this value can you pass a wildcard for clear?

Using a regex for example to clear a large amount of url’s like this.


(Harinder Singh) #2

You can use Triggers to clear the cache for these assets. I would use “URL matches” condition to match with parameters.


(David Schoen) #3

How the cache is cleared on URLs with query parameters depends on the proxy cache in use. There’s definitely no general pattern that makes this possible so it’s better to set appropriate TTLs on pages like this.