![]() |
Schedule vB's tasks with a host crontab
Schedule vB's tasks with a host crontab !!! Warning You run this script at your OWN risk, I will not be responsible for any damage caused !!! Description: vBulletins schedule tasks only run when a user is browsing your forum. With the release of 3.6 and RSS imports this has caused problems for slow moving forums importing fast moving RSS feeds (If a news item passes fully through the RSS feed before a visitor browses your forums causing the import to be processed then content could be lost)Solution: If your host supports "Cron Jobs" you can call the attached PHP file periodically to force vBulletin to catch up with its internal scheduled tasks.Installation
eg. (to run every hour at 15m past the hour, 12:15 - 13:15 - 14:15 - etc.)Detailed Information Unfortunatly running the cron.php from the vBulletin files will only process the next pending single task, This short script simply queries the scheduled task database to count how many tasks are pending, it then calls the cron.php routine that number of times - thus your scheduled tasks are kept up to date. |
I wasn't at all sure which forum to drop this script into, but as it relates mostly to the new RSS feature in 3.6 I guessed here was as good a place, sorry if it isn't.
|
Very nice! :)
|
very good work
Now vBulletin has real cronjop |
Quote:
Mine just runs every hour and typicaly has about 5 or 6 jobs to run at that point if no one has visited the forums in that time, works really well for importing RSS feeds tho. |
Does this work with 3.6.5? It appears the "15 minute after the hour" example has the file name backwards.
|
yes it does work with 3.6.5 I had to change it slightly for non-localhost connections ;) Here is the part you need to change.
PHP Code:
INSTALLED Thanks Dooch |
Sweet this is excellent for small boards.. I've been waiting sooooooo loooooong for this.. :)
|
This is working nicely. I can't believe that VB doesn't offer something like this to run the scheduled tasks, because without traffic, those tasks will not run. That's just stupid.
Thanks! |
yea thats true - Thanks Im using it now it works great :)
|
All times are GMT. The time now is 04:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|