function bean_cache_clear_block in Bean (for Drupal 7) 7
Clear out cache_block table
Parameters
object $bean the bean object:
1 call to bean_cache_clear_block()
- Bean::save in includes/
bean.core.inc - Override the save to add clearing of caches
File
- ./
bean.module, line 448 - Block Entity
Code
function bean_cache_clear_block($bean = null) {
if (isset($bean->delta)) {
cache_clear_all('bean:' . $bean->delta . ':', 'cache_block', TRUE);
}
else {
cache_clear_all('bean:', 'cache_block', TRUE);
}
cache_clear_all('bean_block_info', 'cache');
}