/** * @param ContentNodeEvent $event */ public function onContentNodePostSave(ContentNodeEvent $event) { $this->handler->invalidateStructure($event->getStructure()); }
/** * Called by event: ContentEvents::NODE_POST_SAVE */ public function onSave(ContentNodeEvent $event) { $this->scheduler->createTask('sulu_task.warmup_page', ['uuid' => $event->getNode()->getIdentifier(), 'locale' => $event->getStructure()->getLanguageCode(), 'webspaceKey' => $event->getStructure()->getWebspaceKey()])->schedule(); }