Log in

View Full Version : A hack to disable/enable options by cron job in order to reduce server load


smdani
05-13-2006, 05:40 AM
I have the ?too many connections? issue at certain hours when there are peaks of visitors, actually 537 visitors is my best mark, then I was wondering if there was any modification that changes certain options from the vb options menu in order to reduces the server load in those rush hours

I?ve found in other forum this help:
If you just upgraded to vB 3.5.x try to disable these 4 options:

Admin CP -> vBulletin Options -> Forums Home Page Options -> Display Logged in Users?

Admin CP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Show Users Browsing Forums

Admin CP -> vBulletin Options -> Thread Display Options -> Show Users Browsing Thread

Admin CP -> vBulletin Options -> Message Searching Options -> Automatic Similar Thread search

Then what I want is only to disable and reenable those options by cron entry at rush hours, but I?m not a great coder and don?t know the php to do this

Also this could be a good hack that let you choose what options want to change by hours or days

?Any one could help or point me in the syntax and variables to make at least the php for this cron task, or would implement this as a hack?

Thanks in advance