Classes/Hook/Crawler.php
protected function clearCache(TypoScriptFrontendController $parentObject)
    {
        $pageId = $parentObject->id;
        if (!\is_numeric($pageId)) {
            $parentObject->applicationData['tx_crawler']['log'][] = 'EXT:staticfilecache skipped';

            return;
        }

        GeneralUtility::makeInstance(CacheService::class)->clearByPageId($pageId);
        $parentObject->applicationData['tx_crawler']['log'][] = 'EXT:staticfilecache cleared static file';
    }
protected function clearCache(TypoScriptFrontendController $parentObject)
    {
        $pageId = $parentObject->id;
        if (!\is_numeric($pageId)) {
            $parentObject->applicationData['tx_crawler']['log'][] = 'EXT:staticfilecache skipped';

            return;
        }

        GeneralUtility::makeInstance(CacheService::class)->clearByPageId($pageId);
        $parentObject->applicationData['tx_crawler']['log'][] = 'EXT:staticfilecache cleared static file';
    }
protected function clearCache ( TypoScriptFrontendController $ parentObject ) { $ pageId = $ parentObject -> id ; if ( ! \ is_numeric ( $ pageId ) ) { $ parentObject -> applicationData [ 'tx_crawler' ] [ 'log' ] [ ] = 'EXT:staticfilecache skipped' ; return ; } GeneralUtility :: makeInstance ( CacheService :: class ) -> clearByPageId ( $ pageId ) ; $ parentObject -> applicationData [ 'tx_crawler' ] [ 'log' ] [ ] = 'EXT:staticfilecache cleared static file' ; }
Execute the clear cache.

@param TypoScriptFrontendController $parentObject

@throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
Execute the clear cache .