You are here

function acquia_purge_purge_path in Acquia Purge 6

Same name and namespace in other branches
  1. 7 acquia_purge.deprecated.inc \acquia_purge_purge_path()

Purge a certain Drupal path from Varnish.

@returns Progress statistics from the queue manager. Associative array with the keys 'running', 'total', 'remaining', 'processed', 'percent' and 'purgehistory'.

Parameters

string $path: The Drupal path (e.g. '<front>', 'user/1' or an aliased path).

1 call to acquia_purge_purge_path()
drush_acquia_purge_ap_purge in ./acquia_purge.drush.inc
Purge a specified path from your balancers.

File

./acquia_purge.module, line 1135
Acquia Purge, Top-notch Varnish purging on Acquia Cloud!

Code

function acquia_purge_purge_path($path) {

  // Queue the path.
  _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();
}