/** * Gets the events that need to be cleaned when the content is updated. * Add a generic 'sections_updated' event. Useful for widgets. */ protected function getCleanCacheEvents() { $events = parent::getCleanCacheEvents(); foreach ($this->content->getCacheEvents() as $event) { $events[] = $event; } $events[] = 'sections_updated'; return array_unique($events); }