Skip to content

Instantly share code, notes, and snippets.

@driesd
Created August 29, 2013 10:08
Show Gist options
  • Save driesd/6376339 to your computer and use it in GitHub Desktop.
Save driesd/6376339 to your computer and use it in GitHub Desktop.
Disable block cache for a specific block
<?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