private function loadFromCache($basedir)
    {
        if (true === $this->debug) {
            return false;
        }

        if (null === $this->cache) {
            return false;
        }

        $cached_parameters = $this->cache->load($this->getCacheId($basedir), false, $this->getCacheExpire($basedir));
        if (false === $cached_parameters) {
            return false;
        }

        $parameters = @\unserialize($cached_parameters);
        if (!is_array($parameters)) {
            return false;
        }

        foreach ($parameters as $section => $data) {
            $this->setSection($section, $data, true);
        }

        return true;
    }
private function loadFromCache($basedir)
    {
        if (true === $this->debug) {
            return false;
        }

        if (null === $this->cache) {
            return false;
        }

        $cached_parameters = $this->cache->load($this->getCacheId($basedir), false, $this->getCacheExpire($basedir));
        if (false === $cached_parameters) {
            return false;
        }

        $parameters = @\unserialize($cached_parameters);
        if (!is_array($parameters)) {
            return false;
        }

        foreach ($parameters as $section => $data) {
            $this->setSection($section, $data, true);
        }

        return true;
    }
private function loadFromCache ( $ basedir ) { if ( true === $ this -> debug ) { return false ; } if ( null === $ this -> cache ) { return false ; } $ cached_parameters = $ this -> cache -> load ( $ this -> getCacheId ( $ basedir ) , false , $ this -> getCacheExpire ( $ basedir ) ) ; if ( false === $ cached_parameters ) { return false ; } $ parameters = @ \ unserialize ( $ cached_parameters ) ; if ( ! is_array ( $ parameters ) ) { return false ; } foreach ( $ parameters as $ section => $ data ) { $ this -> setSection ( $ section , $ data , true ) ; } return true ; }
If a cache system is defined, try to load a cache for the current basedir.

@param string $basedir The base directory

@return boolean Returns TRUE if a valid cache has been found, FALSE otherwise
If a cache system is defined try to load a cache for the current basedir .