public function clearCache(CachedFileEvent $event)
    {
        $path = $this->getCachePath($event->getCacheSubdirectory(), false);

        $this->clearDirectory($path);
    }
public function clearCache(CachedFileEvent $event)
    {
        $path = $this->getCachePath($event->getCacheSubdirectory(), false);

        $this->clearDirectory($path);
    }
public function clearCache ( CachedFileEvent $ event ) { $ path = $ this -> getCachePath ( $ event -> getCacheSubdirectory ( ) , false ) ; $ this -> clearDirectory ( $ path ) ; }
Clear the file cache. Is a subdirectory is specified, only this directory is cleared.
If no directory is specified, the whole cache is cleared.
Only files are deleted, directories will remain.

@param CachedFileEvent $event
Clear the file cache . Is a subdirectory is specified only this directory is cleared . If no directory is specified the whole cache is cleared . Only files are deleted directories will remain .