Neos\Fusion\Core\Cache\FileMonitorListener::flushContentCacheOnFileChanges PHP Method

flushContentCacheOnFileChanges() public method

public flushContentCacheOnFileChanges ( $fileMonitorIdentifier, array $changedFiles ) : void
$fileMonitorIdentifier
$changedFiles array
return void
    public function flushContentCacheOnFileChanges($fileMonitorIdentifier, array $changedFiles)
    {
        $fileMonitorsThatTriggerContentCacheFlush = array('TYPO3CR_NodeTypesConfiguration', 'TypoScript_Files', 'Fluid_TemplateFiles', 'Flow_ClassFiles', 'Flow_ConfigurationFiles', 'Flow_TranslationFiles');
        if (in_array($fileMonitorIdentifier, $fileMonitorsThatTriggerContentCacheFlush)) {
            $this->flowCacheManager->getCache('TYPO3_TypoScript_Content')->flush();
        }
    }