Using cron manager from within PHP

前端 未结 5 1768
别那么骄傲
别那么骄傲 2020-12-15 14:05

I am wanting to add a section in my php application to add / remove scheduled tasks.

Something similar to what they use in vBulletin Forum.

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 14:40

    I believe vBulletin "fakes" cron jobs. Any user which accesses the page executes code which checks to see if any tasks need to be run.

    If however, no users visit the website, none of the cron jobs will execute, the method is 100% reliant on page views.

    Also, to prevent delayed page rendering on users who execute the cron jobs they are executed after the page has been rendered.

    Again, this is just what I think is happening, I haven't looked at the code myself.

    Hope this helps.

提交回复
热议问题