src/Cache.php
public static function clearAll()
    {
        $dir = new \DirectoryIterator(static::config('directory'));

        foreach ($dir as $fileinfo) {

            if ($fileinfo->isFile()) {
                $cacheKey = $fileinfo->getFilename();
                static::clear($cacheKey);
            }
        }
    }
public static function clearAll()
    {
        $dir = new \DirectoryIterator(static::config('directory'));

        foreach ($dir as $fileinfo) {

            if ($fileinfo->isFile()) {
                $cacheKey = $fileinfo->getFilename();
                static::clear($cacheKey);
            }
        }
    }
public static function clearAll ( ) { $ dir = new \ DirectoryIterator ( static :: config ( 'directory' ) ) ; foreach ( $ dir as $ fileinfo ) { if ( $ fileinfo -> isFile ( ) ) { $ cacheKey = $ fileinfo -> getFilename ( ) ; static :: clear ( $ cacheKey ) ; } } }
Clear all the cache data stored in the cache directory
@return void
Clear all the cache data stored in the cache directory