Classes/Hook/UninstallProcess.php
public function afterExtensionUninstall(string $extensionKey, InstallUtility $installUtility)
    {
        if (!\defined('SFC_QUEUE_WORKER')) {
            \define('SFC_QUEUE_WORKER', true);
        }
        $cacheService = GeneralUtility::makeInstance(CacheService::class);
        $cacheService->get()->flush();

        return [$extensionKey, $installUtility];
    }
public function afterExtensionUninstall(string $extensionKey, InstallUtility $installUtility)
    {
        if (!\defined('SFC_QUEUE_WORKER')) {
            \define('SFC_QUEUE_WORKER', true);
        }
        $cacheService = GeneralUtility::makeInstance(CacheService::class);
        $cacheService->get()->flush();

        return [$extensionKey, $installUtility];
    }
public function afterExtensionUninstall ( string $ extensionKey , InstallUtility $ installUtility ) { if ( ! \ defined ( 'SFC_QUEUE_WORKER' ) ) { \ define ( 'SFC_QUEUE_WORKER' , true ) ; } $ cacheService = GeneralUtility :: makeInstance ( CacheService :: class ) ; $ cacheService -> get ( ) -> flush ( ) ; return [ $ extensionKey , $ installUtility ] ; }
Check if staticfile cache is deactived and drop the current cache.

@param string         $extensionKey
@param InstallUtility $installUtility

@throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException

@return array
Check if staticfile cache is deactived and drop the current cache .