You are here

function acquia_purge_purge_node in Acquia Purge 7

Same name and namespace in other branches
  1. 6 acquia_purge.module \acquia_purge_purge_node()

DEPRECATED: Purge the paths from a node from Varnish.

See also

expire_node_insert()

expire_node_update()

expire_node_delete()

File

./acquia_purge.deprecated.inc, line 456
Deprecated functions.

Code

function acquia_purge_purge_node(&$node) {
  _acquia_purge_deprecated('expire_node_*()');
  $paths = array(
    'node/' . $node->nid,
  );
  if (isset($node->path['alias']) && !empty($node->path['alias'])) {
    $paths[] = $node->path['alias'];
  }
  if (isset($node->promote) && $node->promote) {
    $paths[] = '<front>';
    $paths[] = 'rss.xml';
  }

  // Return the paths routine and return the statistics from the queue manager.
  return acquia_purge_purge_paths($paths);
}