View Single Post
  #2  
Old 04-16-2015, 01:19 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Handling cron jobs / scheduled tasks

The example of registering cron tasks is XC/MultiCurrency module.

Its install.yaml contains the registration of cron task:
Code:
XLite\Model\Task: - owner: XLite\Module\XC\MultiCurrency\Core\Task\UpdateRates

and the task itself is described in the aforementioned class:
Code:
\XLite\Module\XC\MultiCurrency\Core\Task\UpdateRates

The routine that actually runs all cron tasks is doNoAction() method of the \XLite\Controller\Console\Cron class.

Please, let me know if this info helps. Of course, Mike, if there is any other question, just let me know.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote