function _blockcache_alter_nodequeue_cleanup in Block Cache Alter 6
Helper function to cleanup cache for nodequeue block.
2 calls to _blockcache_alter_nodequeue_cleanup()
- blockcache_alter_nodequeue_add in ./
blockcache_alter.module - Implementation of hook_nodequeue_add().
- blockcache_alter_nodequeue_remove in ./
blockcache_alter.module - Implementation of hook_nodequeue_remove().
File
- ./
blockcache_alter.module, line 434 - Block Cache alter.
Code
function _blockcache_alter_nodequeue_cleanup($sqid) {
$qid = db_result(db_query("SELECT qid FROM {nodequeue_subqueue} WHERE sqid = %d", $sqid));
if ($qid !== FALSE) {
$sqid = $qid;
}
$refresh = variable_get('bc_refresh_views_nodequeue_' . $sqid . '-block', array());
if ($refresh['nodequeue'] == 'nodequeue') {
cache_clear_all('views:nodequeue_' . $sqid . '-block', 'cache_block', TRUE);
}
}