app/code/community/Nexcessnet/Turpentine/Helper/Cron.php
public function addCategoryToCrawlerQueue($category) {
        $catUrls = array();
        $origStore = Mage::app()->getStore();
        foreach (Mage::app()->getStores() as $storeId => $store) {
            Mage::app()->setCurrentStore($store);
            $catUrls[] = $category->getUrl();
        }
        Mage::app()->setCurrentStore($origStore);
        return $this->addUrlsToCrawlerQueue($catUrls);
    }
public function addCategoryToCrawlerQueue($category) {
        $catUrls = array();
        $origStore = Mage::app()->getStore();
        foreach (Mage::app()->getStores() as $storeId => $store) {
            Mage::app()->setCurrentStore($store);
            $catUrls[] = $category->getUrl();
        }
        Mage::app()->setCurrentStore($origStore);
        return $this->addUrlsToCrawlerQueue($catUrls);
    }
public function addCategoryToCrawlerQueue ( $ category ) { $ catUrls = array ( ) ; $ origStore = Mage :: app ( ) -> getStore ( ) ; foreach ( Mage :: app ( ) -> getStores ( ) as $ storeId => $ store ) { Mage :: app ( ) -> setCurrentStore ( $ store ) ; $ catUrls [ ] = $ category -> getUrl ( ) ; } Mage :: app ( ) -> setCurrentStore ( $ origStore ) ; return $ this -> addUrlsToCrawlerQueue ( $ catUrls ) ; }
Add URLs to the queue by category model

@param Mage_Catalog_Model_Category $category
@return int
Add URLs to the queue by category model