Register Members List Search Today's Posts Mark Forums Read

Mod Options
[Not tested] vB-Cron invoked by server cron Details »
[Not tested] vB-Cron invoked by server cron
Mod Version: 1.00, by Brad (Contributor) Brad is offline
Developer Last Online: Feb 2020 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 4
Released: 13 Aug 2004 Last Update: Never Downloads: 37
Not Supported Re-usable Code Translations Is in Beta Stage  

This hack strips out normal vB logic that invokes your vBcron tasks by user actions. Normally when a user visits a vBulletin powered page, vB checks to see if any vBcron tasks need to be done.

Altho preformance varys from forum to forum by user activity more often then not tasks are not run when they are supposed to.

This hack attempts to solve this problem by invoking vBcron tasks with the cron service already avaiable on the server. This should not affect the vBcron tasks at all, because we are invoking them with the same php file, just doing it with the server rather then a client.

If you want to take the plunge preform the attached file edits, then run the file /vbroot/cron.php with your servers cron. I will test it more myself soon, until then only use on test boards, defently not for live installs yet.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Old 13 Aug 2004, 01:30
Natch's Avatar
Natch Natch is offline
Join Date: Nov 2002
What a great idea

Good work - I have no test board at present but will subscribe and watch eagerly
... is the Admin @ - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}
Reply With Quote
Old 13 Sep 2004, 17:06
Erwin's Avatar
Erwin Erwin is offline
Join Date: Jan 2002
Indeed... a great idea. Mmm...
Reply With Quote
Old 15 Sep 2004, 10:07
hum... i see the infos about deactivating the cron from the board side, but would it be possible to have a tutorial for the cron - serverside ?!
Reply With Quote
Old 15 Sep 2004, 13:52
SCN SCN is offline
Join Date: Apr 2004
Post crontab


try this to run cron.php every 1 min serverside:

Add the line to /etc/crontab

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks for the hack, testing it now. :knockedout:

Last edited by SCN; 15 Sep 2004 at 17:51.
Reply With Quote
Old 15 Nov 2005, 00:41
Tommy Boy Tommy Boy is offline
Join Date: Nov 2001
Any progress on this idea? Is it considered stable for vb 3.5?
Reply With Quote
Old 25 Jul 2007, 03:20
Simon Moon Simon Moon is offline
Join Date: Nov 2001
Even simpler...
Put this in your crontab (on console do "crontab -e") and replace the url with the actual cron.php location.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now only remove this from the footer template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats it. You could go and do some code edits to remove the functions behind it, but thats not really needed, there is no real impact there. The really great thing though is that you now have real cron jobs, that are run once a minute and it doesn't matter if you have a very active or a hardly visited forum, the load will be the same. Tested on a 3.6.7 vB.
"If we knew what we were doing we wouldn't call it research"
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 07:43.

Layout Options | Width: Wide Color: