Prado\Web\THttpRequest::loadCachedUrlManager PHP Method

loadCachedUrlManager() protected method

Loads UrlManager instance from cache.
protected loadCachedUrlManager ( ) : TUrlManager
return TUrlManager intance if load was successful, null otherwise.
    protected function loadCachedUrlManager()
    {
        if ($this->getEnableCache()) {
            $cache = $this->getApplication()->getCache();
            if ($cache !== null) {
                $manager = $cache->get($this->getCacheKey());
                if ($manager instanceof TUrlManager) {
                    return $manager;
                }
            }
        }
        return null;
    }