Because the module doesn't support the wildcard option from hook_expire_cache(), it would be useful if there was a hook available to modify the list of URLs to purge.
A typical example would be using Panels on a page that accepts arguments, e.g. products/by-category/%. When the page is modified Expire Panels notes that the page accepts arguments and so passes along the base portion of the path ("products/by-category/") and indicates it is a wildcard path; the Varnish module then processes this and flushes all pages beginning with the base path. In order for Recacher to be used with this scenario it would be good if we could e.g. append some of the most commonly used arguments to the path, turning "products/by-category/" (with a missing wildcard) into "products/by-category/trees", "products/by-category/lightbulbs", etc.
Comment | File | Size | Author |
---|---|---|---|
#2 | recacher-n2831552-2.patch | 2.89 KB | DamienMcKenna |
Comments
Comment #2
DamienMcKennaThis adds hook_recacher_urls_alter().
Comment #4
Vacilando CreditAttribution: Vacilando as a volunteer commentedLooks good; committed to 7.x-1.x-dev!
Please test in your application and re-open this issue if there is any problem.