function acquia_purge_purge_node in Acquia Purge 7
Same name and namespace in other branches
- 6 acquia_purge.module \acquia_purge_purge_node()
DEPRECATED: Purge the paths from a node from Varnish.
See also
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);
}