Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: MonoTiz on March 22, 2008, 02:39:14 PM

Title: AutoTask in SMF 2.0
Post by: MonoTiz on March 22, 2008, 02:39:14 PM
As SMF 2.0 know when to execute the task?

I saw that the function AutoTask is called inside the file Load.php.

It means that every time a user connects to the forum, are controlled tasks to be execute?
Title: Re: AutoTask in SMF 2.0
Post by: karlbenson on March 22, 2008, 02:41:12 PM
SMF doesn't use CRON to perform scheduled tasks.
It basically does use users to perform them when they call a page.

So there is a check to see if there are tasks to run, and obviously checking against the current time for scheduled tasks.

Most of the functions I believe are in

It shouldn't affect the response times too much.
eg when you send a newsletter in 1.x it can send 500 at a time and overload your mail server
While in 2.x it will send 50 at a time and spread out so you don't exceed mail limits.