You are here

function akamai_node_update in Akamai 7.2

Same name and namespace in other branches
  1. 8 akamai.module \akamai_node_update()
  2. 8.2 akamai.module \akamai_node_update()
  3. 7.3 akamai.module \akamai_node_update()
  4. 7 akamai.module \akamai_node_update()

Implements hook_node_update().

When nodes are modified, clear URL from the Akamai cache. Clear base node/% url as well as aliases.

File

./akamai.module, line 106
Integration with the Akamai CDN Cache Control Web Service.

Code

function akamai_node_update($node) {
  $url = base_path() . "node/{$node->nid}";
  akamai_clear_url($url, array(), $node);
}