Classes/Cache/StaticFileBackend.php
protected function removeStaticFiles(string $entryIdentifier): bool
    {
        $fileName = $this->getCacheFilename($entryIdentifier);
        $dispatchArguments = [
            'entryIdentifier' => $entryIdentifier,
            'fileName' => $fileName,
            'files' => [
                PathUtility::pathinfo($fileName, PATHINFO_DIRNAME) . '/.htaccess',
            ],
        ];

        GeneralUtility::makeInstance(MetaGenerator::class)->remove($entryIdentifier, $fileName);

        $dispatched = $this->dispatch('removeStaticFiles', $dispatchArguments);
        $files = $dispatched['files'];
        $removeService = GeneralUtility::makeInstance(RemoveService::class);
        foreach ($files as $file) {
            if (false === $removeService->removeFile($file)) {
                return false;
            }
        }

        return true;
    }
protected function removeStaticFiles(string $entryIdentifier): bool
    {
        $fileName = $this->getCacheFilename($entryIdentifier);
        $dispatchArguments = [
            'entryIdentifier' => $entryIdentifier,
            'fileName' => $fileName,
            'files' => [
                PathUtility::pathinfo($fileName, PATHINFO_DIRNAME) . '/.htaccess',
            ],
        ];

        GeneralUtility::makeInstance(MetaGenerator::class)->remove($entryIdentifier, $fileName);

        $dispatched = $this->dispatch('removeStaticFiles', $dispatchArguments);
        $files = $dispatched['files'];
        $removeService = GeneralUtility::makeInstance(RemoveService::class);
        foreach ($files as $file) {
            if (false === $removeService->removeFile($file)) {
                return false;
            }
        }

        return true;
    }
protected function removeStaticFiles ( string $ entryIdentifier ) : bool { $ fileName = $ this -> getCacheFilename ( $ entryIdentifier ) ; $ dispatchArguments = [ 'entryIdentifier' => $ entryIdentifier , 'fileName' => $ fileName , 'files' => [ PathUtility :: pathinfo ( $ fileName , PATHINFO_DIRNAME ) . '/.htaccess' , ] , ] ; GeneralUtility :: makeInstance ( MetaGenerator :: class ) -> remove ( $ entryIdentifier , $ fileName ) ; $ dispatched = $ this -> dispatch ( 'removeStaticFiles' , $ dispatchArguments ) ; $ files = $ dispatched [ 'files' ] ; $ removeService = GeneralUtility :: makeInstance ( RemoveService :: class ) ; foreach ( $ files as $ file ) { if ( false === $ removeService -> removeFile ( $ file ) ) { return false ; } } return true ; }
Remove the static files of the given identifier.

@param string $entryIdentifier

@return bool success if the files are deleted
Remove the static files of the given identifier .