lib/Cache.php
public function clean()
    {
        $directory = scandir($this->path);

        if (!empty($directory)) {
            foreach ($directory as $item) {
                if ($item !== '.' && $item !== '..') {
                    $this->remove($item);
                }
            }
        }

        return $this;
    }
public function clean()
    {
        $directory = scandir($this->path);

        if (!empty($directory)) {
            foreach ($directory as $item) {
                if ($item !== '.' && $item !== '..') {
                    $this->remove($item);
                }
            }
        }

        return $this;
    }
public function clean ( ) { $ directory = scandir ( $ this -> path ) ; if ( ! empty ( $ directory ) ) { foreach ( $ directory as $ item ) { if ( $ item !== '.' && $ item !== '..' ) { $ this -> remove ( $ item ) ; } } } return $ this ; }
Clean all cache

@return $this
Clean all cache