/** * This aspect will reset the node type cache after changes to the dynamic node types * * @Flow\After("method(Shel\DynamicNodes\Controller\DynamicNodeTypeController->(update|create|delete|editProperty|createDynamicProperty|updateDynamicProperty|deleteDynamicProperty)Action())") * @param JoinPointInterface $joinPoint The current join point * @return void */ public function clearNodeTypeConfigurationCache(JoinPointInterface $joinPoint) { // Flush note type configuration cache $this->nodeTypeManager->overrideNodeTypes(array()); // Flush configuration version cache to force reload the node type schema $this->cacheManager->getCache('TYPO3_Neos_Configuration_Version')->flush(); // Flush content cache so changed dynamic nodes are updated $this->cacheManager->getCache('TYPO3_TypoScript_Content')->flush(); }