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

If cron is used to update post counts, how is it done on windows?

Discussion in 'XenForo Questions and Support' started by Shamufish, Jun 28, 2011.

  1. Shamufish

    Shamufish Member

    Installed XF on IIS...

    The FAQ states:

    "How and when are user and post counts updated?
    The global user and post counts are updated via a cron job (Rebuild Board Totals Counter) every 10 minutes."

    I can't see any scheduled tasks in my windows admin panel.

    I'm confused... how is the post count updated then?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The cron tasks are in the ACP -> Tools -> Cron Entries of your XenForo installation.
  3. Shamufish

    Shamufish Member

    Right but CRONw is not installed on my box, so surely it can't be using CRON to schedule things.
    I'm on windows, there is no cron.
  4. ragtek

    ragtek Guest

    The xenforo cron doesn't need the unix cron job for this.
  5. Shamufish

    Shamufish Member

    Out of curiosity, does anyone know how this works?
  6. ragtek

    ragtek Guest

    xenforo handels the cron jobs in an own db table.

    cron.php is linked as a "image" in the footer, which is called if necessary
    <xen:if is="{$cronLink}"><img src="{$cronLink}" width="1" height="1" alt="" style="display: none" /></xen:if>
    and this script runs the cronjobs:)
    (hope you know what i mean^^)
    Shamufish likes this.
  7. Shamufish

    Shamufish Member

    Makes perfect sense, thank you very much for that.
  8. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Which also means, if no one is browsing your forum, the cron jobs will not run, at all.
    I remember a hack to turn the cron job into a real unix cron job, or in the case of windows, a scheduled tasks.
  9. ragtek

    ragtek Guest

    hm, but does this really happen?:D

    I thought that this would also cause some problems on my vB boards, but my pages have always at least 1 visitor (real or spider)
  10. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    That is correct, I don't think that would happen at all. And if there is nobody seeing the forum then the cron job might as well not run, why would one need to update the view counters if there is nobody to see them ....

    Subscriptions and emails is a whole another topic, though.

Share This Page