Archive for November, 2011

Clear Drupal Cache Manually


If we want clear the cache by default, without admin user action. Normaly we use to clear the cache by admin/performance/.
This can be indirectly achieved for nodes as below,

function [module_name]_node_update($node){cache_clear_all(‘*’, ‘cache_views_data’, TRUE);

For Blocks,

While creating blocks for the module we can write as,

function [module_name]_block_info() {$blocks[‘product_filter’] = array(
‘info’ => t(‘Product Filter’),
‘cache’ => DRUPAL_NO_CACHE,

return $blocks;

Categories: Drupal