Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function template-name_preprocess_block(&$vars) {
- if($vars['derivative_plugin_id'] == 'add-block-id-name') {
- //-- This stops the block being cache in drupal 8
- $vars['#cache']['max-age'] = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement