app/code/community/Nexcessnet/Turpentine/Helper/Cron.php
public function addCmsPageToCrawlerQueue($cmsPageId) {
        $page = Mage::getModel('cms/page')->load($cmsPageId);
        $pageUrls = array();
        $origStore = Mage::app()->getStore();
        foreach (Mage::app()->getStores() as $storeId => $store) {
            Mage::app()->setCurrentStore($store);
            $page->setStoreId($storeId);
            $pageUrls[] = Mage::getUrl(null,
                array('_direct' => $page->getIdentifier()));
        }
        Mage::app()->setCurrentStore($origStore);
        return $this->addUrlsToCrawlerQueue($pageUrls);
    }
public function addCmsPageToCrawlerQueue($cmsPageId) {
        $page = Mage::getModel('cms/page')->load($cmsPageId);
        $pageUrls = array();
        $origStore = Mage::app()->getStore();
        foreach (Mage::app()->getStores() as $storeId => $store) {
            Mage::app()->setCurrentStore($store);
            $page->setStoreId($storeId);
            $pageUrls[] = Mage::getUrl(null,
                array('_direct' => $page->getIdentifier()));
        }
        Mage::app()->setCurrentStore($origStore);
        return $this->addUrlsToCrawlerQueue($pageUrls);
    }
public function addCmsPageToCrawlerQueue ( $ cmsPageId ) { $ page = Mage :: getModel ( 'cms/page' ) -> load ( $ cmsPageId ) ; $ pageUrls = array ( ) ; $ origStore = Mage :: app ( ) -> getStore ( ) ; foreach ( Mage :: app ( ) -> getStores ( ) as $ storeId => $ store ) { Mage :: app ( ) -> setCurrentStore ( $ store ) ; $ page -> setStoreId ( $ storeId ) ; $ pageUrls [ ] = Mage :: getUrl ( null , array ( '_direct' => $ page -> getIdentifier ( ) ) ) ; } Mage :: app ( ) -> setCurrentStore ( $ origStore ) ; return $ this -> addUrlsToCrawlerQueue ( $ pageUrls ) ; }
Add URLs to queue by CMS page ID

@param int $cmsPageId
@return int
Add URLs to queue by CMS page ID