Commit b41e9f4e authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Merge pull request #721 from tsteiner2/issue-720

Closes #720
parents 07494805 5bf8eefc
......@@ -60,7 +60,7 @@ function unl_varnish_purge_submit($form, &$form_state) {
*/
function unl_varnish_purge_all_sites_submit($form, &$form_state) {
$path = $form_state['values']['varnish_path'];
_varnish_terminal_run("purge.url $path");
varnish_purge('.*', $path);
drupal_set_message("Varnish purged paths matching $path.", 'status');
}
......@@ -150,6 +150,6 @@ function unl_varnish_purge_all_pages() {
$host = parse_url($alias, PHP_URL_HOST);
$path = parse_url($alias, PHP_URL_PATH);
_varnish_terminal_run("purge req.http.host ~ $host && req.url ~ ^$path");
varnish_purge($host, $path);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment