ResourceLocator/src/UniformResourceLocator.php
public function clearCache($uri = null)
    {
        if ($uri) {
            $this->clearCached($uri, true, true, true);
            $this->clearCached($uri, true, true, false);
            $this->clearCached($uri, true, false, true);
            $this->clearCached($uri, true, false, false);
            $this->clearCached($uri, false, true, true);
            $this->clearCached($uri, false, true, false);
            $this->clearCached($uri, false, false, true);
            $this->clearCached($uri, false, false, false);
        } else {
            $this->cache = [];
        }

        return $this;
    }
public function clearCache($uri = null)
    {
        if ($uri) {
            $this->clearCached($uri, true, true, true);
            $this->clearCached($uri, true, true, false);
            $this->clearCached($uri, true, false, true);
            $this->clearCached($uri, true, false, false);
            $this->clearCached($uri, false, true, true);
            $this->clearCached($uri, false, true, false);
            $this->clearCached($uri, false, false, true);
            $this->clearCached($uri, false, false, false);
        } else {
            $this->cache = [];
        }

        return $this;
    }
public function clearCache ( $ uri = null ) { if ( $ uri ) { $ this -> clearCached ( $ uri , true , true , true ) ; $ this -> clearCached ( $ uri , true , true , false ) ; $ this -> clearCached ( $ uri , true , false , true ) ; $ this -> clearCached ( $ uri , true , false , false ) ; $ this -> clearCached ( $ uri , false , true , true ) ; $ this -> clearCached ( $ uri , false , true , false ) ; $ this -> clearCached ( $ uri , false , false , true ) ; $ this -> clearCached ( $ uri , false , false , false ) ; } else { $ this -> cache = [ ] ; } return $ this ; }
Reset locator cache.

@param string $uri
@return $this
Reset locator cache .