You are here

function boost_votingapi_insert in Boost 6

Implementation of hook_votingapi_insert().

Parameters

$votes: array of votes

File

./boost.module, line 1666
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

function boost_votingapi_insert($votes) {
  if (!variable_get('boost_enabled', CACHE_NORMAL)) {
    return;
  }
  foreach ($votes as $vote) {
    $node = node_load($vote['content_id'], NULL, TRUE);
    boost_expire_node($node, $vote['content_id']);
  }
}