Hi guys on 5.47e, there is a default link "view today's active topics" which uses "search.cgi?action=getdaily"
I know how cpu intensive search script is and I have search disabled.
However the command above is useful and so I still have the link on display. But this badly written script (or so I think) chews up 80-85% of cpu time at the time it runs (for however many milliseconds)!!
Is there any way in Linux I can create a special file "search.cgi" in the ubb bin directory which actually calls out "nice -n 19 REALsearchscript.cgi" so that by default whenever search.cgi is run, it runs with nice -n 19 ???
In Linux as far as I know I can nice an entire account that runs all the scripts but I just want this one script to be niced.
Or is there any other way to decrease cpu usage of this script when used with active topics daily? Thx in adv!
Hi there it works that is, it definitely reduces cpu usage. BUT it also shows multiple topics (same topics that were active) so my list of active topics actually goes up 3x because it is showing duplicate (or more) topics in the same list. I think you may have to add the duplicate topic code check back in?
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.