On our site we are using mobile_tools module to allow for a mobile site, the issue being if you flush the site at www it does not flush the varnish cache for m. To solve this I created a little patch which would allow the admin to either:
* choose a format from a dropdown list
* amend the regex

This allows for the host variable in the purge path to be manipulated. I will create a patch and share here incase anyone else has a similar issue.

CommentFileSizeAuthor
#1 varnish-advancedhost-1349284-0.patch12.86 KBretrodans

Comments

retrodans’s picture

StatusFileSize
new12.86 KB

Here is the patch if it's of interest to anyone, or if anybody has advice on a better approach/improvements

fabsor’s picture

Nice, but I think this UI could be combined with the approach in #859998: Introduce varnish_hosts_list and hook_varnish_hosts_alter() for purging host aliases which provides a hook for specifiying more hosts. If the UI could be built on top of that, other ways of finding out hosts can be more easily integrated.

Would you mind if I mark this issue as a duplicate, so we can focus of this in #859998: Introduce varnish_hosts_list and hook_varnish_hosts_alter() for purging host aliases?

misc’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

As a part of a clean up of the issue queue for the varnish module I am closing tickets that had no activity for the last year, please feel free to re-open if needed.