• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

What is the cron/task dependant on?

Shamil

Well-known member
#2
From what I read earlier, it's a normal cron based system that runs every 24 hours or so. I see not evidence in the source that they are doing a page-load-based system.
 

Mike

XenForo developer
Staff member
#3
No, it's using the page load system. With the configurability of the tasks and the need to be able to add new ones as necessary, it generally doesn't make sense to use a system cron task.
 

Shamil

Well-known member
#4
No, it's using the page load system. With the configurability of the tasks and the need to be able to add new ones as necessary, it generally doesn't make sense to use a system cron task.
oops, ok. I assume it's handled in a php include, rather than calling of an image which vB does?
 

Kuma

Active member
#5
Will there at least be support for being able to push a cron script to the crontab?
Even if it is as simple as wget/curling a url, or running a generic cron handler every 5~ min.
 

Mike

XenForo developer
Staff member
#6
You could just wget cron.php every 5 minutes if you wanted to, but I'm not sure I see the benefit?
 

Kuma

Active member
#8
You could just wget cron.php every 5 minutes if you wanted to, but I'm not sure I see the benefit?
Making it less less depedant on traffic seems like a good thing. Have you got the script to the point where it will not impact the page load at all?
 

Mike

XenForo developer
Staff member
#9
I suppose it could hold up the onload event/give you an "in progress" icon for a while, but otherwise it shouldn't effect the page. I did think about using ajax, but it didn't seem worthwhile at the time. It'd probably be trivial to add.