![]() |
Execute Scheduled Tasks Via Crontab
This product will run your scheduled tasks via crontab rather than the current method where Vbulletin uses an image to execute tasks. This can slow down a users experience especially with long running tasks. It also stops all of those cron.php entries in your webserver log.
This product is really only useful for those on *nix (Linux/Unix/Etc) servers. Will not work on Windows based servers. You should have a rudimentary understanding of crontab before installing this hack. For those wondering how this differs from this hack, well, first of all, it works for 3.6.8, but more importantly it actually replaces the method Vbulletin uses to execute scheduled tasks, whereas the other hack only helps it out. https://vborg.vbsupport.ru/Please Click Install!https://vborg.vbsupport.ru/ Brought To You By WorldWideCreations.com. |
Thanx for this.
|
Thanx
|
Your Welcome. :)
|
*Marked as Installed*
Nifty little utility. Thanks |
Your welcome.. Let me know if you have any issues with it.
|
very useful cheers
|
Quote:
|
does this work with vb 3.76beta ?
I'd like to install this and get rid of the dumb vbulletin way of running the tasks. Thanks, jason |
I'm not much of a programmer or a coder, but I can follow directions :D
I've uploaded this to vbulletin 3.76beta and it appears to work just fine, I will continue to keep my eye on it, but as far as I can tell it is working as intended. Thanks for the add on Jason |
Don't see why it wouldn't, but I for one will not modify any plugin for a beta. When it is released, then I consider it.
|
Quote:
I like the idea of using this instead of vbulletins built in cron tasks. Thanks, Jason |
No I don't consider it a release. You are always free to try it yourself. :)
|
Unless they have seriously changed the way scheduled tasks are done, I don't see how it would not work in the latest beta versions.
|
Can this increase server load? My webhost just contacted me saying that cron.php among other scripts were using too much cpu.
|
Quote:
|
I have been using this mod for quite some time (clicked install over a year ago) now, and always lived with vBulletin cron tasks running one at a time when the linux cron ran once a minute.
But last week I got ambitious and dug into the bash shell to write this script that runs all the tasks scheduled for any any particular minute, instead of allowing them to sit in 'backlog' until the next minute. Code:
#!/bin/bash |
Why not just use:
/usr/bin/php /home/username/public_html/forum/cron.php >& /dev/null ??? :) |
Because then you are still displaying the cron.php image..
|
Ah, I understand what you are saying. But I still think it is better to call the /usr/bin/php directly rather than using a .SH script that does the exact same thing.
But of course, the product XML would have to be loaded to remove the $cronimage from displaying. |
You need the shell script to change the working directory to where vBulletin lives.
If you call /usr/bin/php directly from cron, your working directory will be $HOME for the account running cron and cron.php won't find any of the includes it needs. |
Thanks, this is a very useful mod :)
It also works on Windows for those of you that have cronw installed. |
Does still work with vB 4.
Im Happy! :) |
Humm.. Why not adding this to crontab..?
(Needs wget, fetch or similar). * * * * * /path/to/wget -O /dev/null "http://myforum.com/cron.php" >> /dev/null 2>&1 The image is still fetched, but not stored or displayed - as wget, when invoked with the "-O" option, outputs the data to /dev/null. It seems to work fine here. :) |
Any directions on how to use this add-on? Added the .xml file into vBulletin and scheduled the CRON script in my cPanel but nothing is happening.
|
anyone tested this with 4.2?
|
Quote:
|
All times are GMT. The time now is 09:20 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:
|