public function clearCache()
    {
        $objects = scandir($this->getCachePath());
        $dir = $this->getCachePath();
        foreach ($objects as $object) {
            if ($object != "." && $object != "..") {
                if (is_dir($dir.$object)) {
                    self::rrmdir($dir.$object);
                } elseif ($object !== 'cache_config') {
                    unlink($dir.$object);
                }
            }
        }

        return $this;
    }
public function clearCache()
    {
        $objects = scandir($this->getCachePath());
        $dir = $this->getCachePath();
        foreach ($objects as $object) {
            if ($object != "." && $object != "..") {
                if (is_dir($dir.$object)) {
                    self::rrmdir($dir.$object);
                } elseif ($object !== 'cache_config') {
                    unlink($dir.$object);
                }
            }
        }

        return $this;
    }
public function clearCache ( ) { $ objects = scandir ( $ this -> getCachePath ( ) ) ; $ dir = $ this -> getCachePath ( ) ; foreach ( $ objects as $ object ) { if ( $ object != "." && $ object != ".." ) { if ( is_dir ( $ dir . $ object ) ) { self :: rrmdir ( $ dir . $ object ) ; } elseif ( $ object !== 'cache_config' ) { unlink ( $ dir . $ object ) ; } } } return $ this ; }
Removes all entries in the cache. Keeps `cache_config` and cache's folder.

@return $this
Removes all entries in the cache . Keeps cache_config and cache s folder .