function Generate()
    {
        if ($this->cacher->MustUseCache())
        {
            $this->xml = $this->cacher->GetFromCache();
            return;
        }
        $this->AddAllPages();
        $this->xml = $this->sitemap->SaveXml();
        if ($this->cacher->MustStoreToCache())
        {
            $this->cacher->StoreToCache($this->xml);
        }
    }
function Generate()
    {
        if ($this->cacher->MustUseCache())
        {
            $this->xml = $this->cacher->GetFromCache();
            return;
        }
        $this->AddAllPages();
        $this->xml = $this->sitemap->SaveXml();
        if ($this->cacher->MustStoreToCache())
        {
            $this->cacher->StoreToCache($this->xml);
        }
    }
function Generate ( ) { if ( $ this -> cacher -> MustUseCache ( ) ) { $ this -> xml = $ this -> cacher -> GetFromCache ( ) ; return ; } $ this -> AddAllPages ( ) ; $ this -> xml = $ this -> sitemap -> SaveXml ( ) ; if ( $ this -> cacher -> MustStoreToCache ( ) ) { $ this -> cacher -> StoreToCache ( $ this -> xml ) ; } }
Generates the xml by pulling it from cache or generating it
@return string
Generates the xml by pulling it from cache or generating it