expire($entity, 0, $skip_action_check = TRUE); } } // Expire custom pages. $expire_custom = variable_get('expire_votingapi_custom', EXPIRE_VOTINGAPI_CUSTOM); if ($expire_custom) { $pages = variable_get('expire_votingapi_custom_pages'); // Load voted entity. $entities = entity_load($entity_type, array($entity_id)); // Check whether entity is loaded. if (isset($entities[$entity_id])) { $entity = $entities[$entity_id]; $urls = ExpireAPI::expireCustomPages($pages, array($entity_type => $entity)); $expire_urls = array_merge($expire_urls, $urls); } } } // Flush page cache for expired urls. ExpireAPI::executeExpiration($expire_urls, 'votingapi', $votes); $cache_flushed = TRUE; } }