diff --git a/src/TwigExtension.php b/src/TwigExtension.php index 4c3e14e..c9d3864 100644 --- a/src/TwigExtension.php +++ b/src/TwigExtension.php @@ -351,6 +351,8 @@ class TwigExtension extends \Twig_Extension { */ public function drupalSetMessage($message = NULL, $type = 'status', $repeat = FALSE) { drupal_set_message($message, $type, $repeat); + $build['#cache']['max-age'] = 0; + return $build; } }