1. 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?

Discussion in 'XenForo Pre-Sales Questions' started by Kuma, Jul 29, 2010.

  1. Kuma

    Kuma Active Member

    Will it work based on visitors, or do you guys have something implimented to run it on a real cron?
     
  2. Shamil

    Shamil Well-Known Member

    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.
     
  3. Mike

    Mike XenForo Developer Staff Member

    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.
     
  4. Shamil

    Shamil Well-Known Member

    oops, ok. I assume it's handled in a php include, rather than calling of an image which vB does?
     
  5. Kuma

    Kuma Active Member

    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.
     
  6. Mike

    Mike XenForo Developer Staff Member

    You could just wget cron.php every 5 minutes if you wanted to, but I'm not sure I see the benefit?
     
  7. Shamil

    Shamil Well-Known Member

    Oh screw me, it is an image :/
     
  8. Kuma

    Kuma Active Member

    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?
     
  9. Mike

    Mike XenForo Developer Staff Member

    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.
     
  10. Kuma

    Kuma Active Member

    Making it an ajax event would be a step in the right direction I believe.
     
    Mujahid Taban likes this.

Share This Page