Created
August 29, 2013 10:08
-
-
Save driesd/6376339 to your computer and use it in GitHub Desktop.
Disable block cache for a specific block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//DISABLE BLOCK CACHE | |
function mytheme_block_info_alter(&$blocks, $theme, $code_blocks) { | |
$blocks['addtoany']['addtoany_button']['cache'] = DRUPAL_NO_CACHE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment