concrete/src/Cache/CacheClearer.php
protected function clearCacheDirectory($directory)
    {
        foreach ($this->filesToClear($directory) as $file) {
            if ($file->isDir()) {
                $this->filesystem->deleteDirectory($file->getPathname());
            } else {
                $this->filesystem->delete($file->getPathname());
            }
        }
    }
protected function clearCacheDirectory($directory)
    {
        foreach ($this->filesToClear($directory) as $file) {
            if ($file->isDir()) {
                $this->filesystem->deleteDirectory($file->getPathname());
            } else {
                $this->filesystem->delete($file->getPathname());
            }
        }
    }
protected function clearCacheDirectory ( $ directory ) { foreach ( $ this -> filesToClear ( $ directory ) as $ file ) { if ( $ file -> isDir ( ) ) { $ this -> filesystem -> deleteDirectory ( $ file -> getPathname ( ) ) ; } else { $ this -> filesystem -> delete ( $ file -> getPathname ( ) ) ; } } }
Clear out items from the cache directory
@param $directory
Clear out items from the cache directory