/**
  * Use decision manager to decide if widget should be cached at all.
  *
  * @param WidgetEvent $event
  */
 public function decideWidgetCache(WidgetEvent $event)
 {
     // Stop Event Propogation to prevent cache being set
     if (!$this->manager->decide($event->getWidget())) {
         $event->stopPropagation();
     }
 }
 public function setStrategyCache(WidgetEvent $event)
 {
     $widget = $event->getWidget();
     $cacheOptions = $event->getStrategy()->getCacheOptions($widget);
     // Set options on response
     $event->getResponse()->setCache($cacheOptions);
 }