You are here

function expire_node_insert in Cache Expiration 7

Same name and namespace in other branches
  1. 7.2 expire.module \expire_node_insert()

Implements hook_node_insert().

Acts on new nodes.

File

./expire.module, line 116
Provides logic for page cache expiration

Code

function expire_node_insert($node) {
  if (!empty($node->nid)) {
    expire_node($node);
  }
}