function acquia_purge_purge_paths in Acquia Purge 6
Same name and namespace in other branches
- 7 acquia_purge.deprecated.inc \acquia_purge_purge_paths()
Purge a several Drupal paths from Varnish.
@returns Progress statistics from the queue manager. Associative array with the keys 'running', 'total', 'remaining', 'processed', 'percent' and 'purgehistory'.
Parameters
string $paths: Array with Drupal paths (e.g. '<front>', 'user/1' or an aliased path).
4 calls to acquia_purge_purge_paths()
- acquia_purge_expire_cache in ./
acquia_purge.module - Implements hook_expire_cache().
- acquia_purge_manualpurge_form_submit in ./
acquia_purge.admin.inc - Callback to drupal_get_form: handle the form submit.
- acquia_purge_purge_node in ./
acquia_purge.module - Purge the paths from a node from Varnish.
- _acquia_purge_action_purge in ./
acquia_purge.rules.inc - Action callback to the "Purge a path from Varnish on Acquia Cloud" rule.
File
- ./
acquia_purge.module, line 1155 - Acquia Purge, Top-notch Varnish purging on Acquia Cloud!
Code
function acquia_purge_purge_paths($paths) {
// Dispatch the paths to acquia_purge_purge_path().
foreach ($paths as $path) {
// Add the item to the queue.
_acquia_purge_queue_add($path);
}
// Return the statistics array based returning useful information about the
// current state of the purge queue.
return _acquia_purge_queue_stats();
}