original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Removes all entries in the cache. Keeps `cache_config` and cache's folder.
  
  @return $this
docstring_tokens: Removes all entries in the cache . Keeps cache_config and cache s folder .