Currently VarnishCache->clear() uses _varnish_terminal_run(array('purge req.http.host ~ ' . $host . ' && req.url ~ "^' . $base . $purge . '$"'));
But instead it should use varnish_purge() to ensure the command is varnish version aware.
Attached patch changes that.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fabsor’s picture

Status: Needs review » Fixed

Good catch! Missed that when porting the Drupal 6 code to Drupal 7, since that had no cache backend. Commited here:

http://drupal.org/commitlog/commit/11214/51f66150291d06f5d279d4c08808fd4...

Status: Fixed » Closed (fixed)

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