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.

CommentFileSizeAuthor
#2 recacher-n2831552-2.patch2.89 KBDamienMcKenna
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna created an issue. See original summary.

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
2.89 KB

This adds hook_recacher_urls_alter().

Vacilando’s picture

Status: Needs review » Fixed

Looks good; committed to 7.x-1.x-dev!

Please test in your application and re-open this issue if there is any problem.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.