I’d like to set up a trigger that recaches a page on our webserver when it is made live.
We are using Redis cache, rather than squid or the matrix cache, so the actions to clear the matrix or squid cache don’t work. Our way of recaching a page is to add /_recache to the end of the url.
Inspired by this post Trigger to clear Matrix cache and then Squid cache not working I’m thinking I can pass in the url of the page I want to recache to a ‘Call REST Resource’ action.
When I hardcode the address of a page, it works. What doesn’t work is when I pass in a keyword like %asset_url_path% as the url in the request (I’ve topped and tailed the path with the site domain and /_recache). Do keywords work in the Call Rest resource? If they do, would %asset_url_path% actually pick up the path of the asset creating the trigger?
Thanks in advance.