![]() |
well, the post count and thread count is WAY off for me.
optimize hack = 608,313 posts original vbb = 559,113 (which is the # of rows in that table) not to mention the thread count is off too. Think i will keep the count(*) for now, but keep the rest of the optimize hack. D |
you should update your counters if there is really that difference....
also not moderated posts don't count towards the stats.. |
Ok, i have released version 2 of the hack.
I've nearly completely recoded it up from ground, so you do better in completly uninstall version1 and install version2 the new version doesn't use the table cache_forumhome anymore, so you could DROP it from your database. at least, no single caching is used anymore (except from moderatorlist caching) The hack is now just an optimization of the forumhome queries. on more frequented boards this will help much better than the old version. also the pm query section has been optimized, so it would work much faster on large DB's than the old one.. |
could you post the old instructions for v1 so that I can uninstall? I didn't keep them =(
|
Will the users browsing forums hack work now with this new version? :)
|
oops, sorry, have overwritten them, too.
maybe someon other has kept them :) if you have no other hacks installed on index.php you can just use an unhacked index.php and start reinstalling. just deltet the one table from the db. |
Quote:
|
/me slam-dunks the install button!
|
Don't know why, but the mods column is now gone.
|
I have a ton of hacks on my index =(
Anyone have the old install txt lying around? Please! =) |
Quote:
|
Ignore that - I had to refresh my browser cache. :)
Looks good. I have already optimized my index.php like that, but by removing the extra queries rather than combining them, so this hack won't help me, but it's fantastic nonetheless. |
I've attached the version 1 install file
|
Damn i got a parse error, in the index.php
Parse error: parse error in /forum/index.php on line 433 (thats the last line with the ?> mark) Did i miss an accolade somewhere or do more people have that problem? Btw: Any ideas where i should look for? Accolades? |
I had to do this line by line because of other hacks, but this is amazing. Was as high as 49 queries. Removed a hack which dropped it down to 43. Just installed this hack, now I'm down to 37. :) Forum runs a little smoother.
|
Hmm. Where is the new version?
|
I solved the Parse error, because i seem to have left some old code in there. :) Dunno if things work out faster yet, although my board has an average of a 1000 pageviews a day. So let's hope users will find it a bit faster....
I didn's see any drop of queries though (28) |
@Aaron1: if you install everything correct, it should reduce the queries by 4 to an unhacked, not to version 1 which was different :)
|
@boofo: that part hasn't changed from version one, so you can use the code i posted in the thread here :)
|
Quote:
|
sorry, have overread it nuno.
have you done the last step and edited a forum (save without any changes?) |
Yes.
Just go to ACP and save any forum right? Did that, all mods are gone. Guess i'll just have to redo the whole install from the start. |
yes, it should work have tested it on two boards right now, and everything works ;)
the jumping point for the mods part is the modified forum.php if you have forgotten just one line your bug could appear :) just check in the db if the fields are filles ;) |
Quote:
|
I have the "user online today" hack installed and that cause not being able to install the hack. even when I remove it I cant do teh find/replace stuff cause my lines are different, I'll be bugging you on icq xenon, maybe you can help me :D
|
i haven't time for private requests!
remove the hack and apply my part or just leave that part out.. @nuno: you're welcome :) |
little upgrade.
the pm queries had a bug, just replace the old pm code with the new one :) |
Did this on vB2.3.0 and worked fine, dropped about 3 queries I belive or maybe more.
My forum is hacked badly -_-. Result: Page generated in 0.25047302 seconds (53.65% PHP - 46.35% MySQL) with 55 queries. Result Before: Page generated in 0.25559199 seconds (53.88% PHP - 46.12% MySQL) with 58 queries. |
wow, good server if it's that fast with 55 queries ;)
but i think you should optimize index.php more than just with my hack ;) |
hi xenon ...
i just want to remove moderator querys from index ... i have to do these PHP Code:
PHP Code:
also this wont cause any problem right ? like update problem or so ? Thanks |
yes right
it won't hurt anymore then :) you shouldn't have any upgrade problems, AFAIK Erwin has removed that col long time ago already and didn't get in trouble.. nevertheless if you just remove the mod query and don't install the mod thing into forum.php (of my file) and also don't improve the whos' online on forumhome queries with my hacking advices, mods wouldn't be highlighted anymore (just supermods and admins would..) |
is that means after removing moderator querys from index.php , i have to apply other querys to other files ?
a little confused ... ;) |
no, no other files are affected :)
hmm, maybe i've posted a bit complicated. There is the online now feature on forumhome right? and if you have enabled the moderatorhighlightin, all your online mods show up bold. if you remove the mod query above and do not change the part which generates the current online users, all normal mods wouldn't be bold anymore :) |
Quote:
One question, how can I optimize it even more? :knockedout: |
well i don't know without knowing your index.php ;)
you can look into my way to combine some queries and try if you can do so yourself on other queries :) |
Thanks for the tip, but I am not quite good at php as you are.
|
well, also i started from a not so experienced level ;)
with time you'll learn how to do these things :) i'd help you, but i really don't have any time left these days. |
whoa..... Dramatic change for me. Very Very Very good hack indeed.
|
Before:
Code:
Page generated in 0.50040603 seconds (27.94% PHP - 72.06% MySQL) with 27 queries. Code:
Page generated in 0.51396000 seconds (26.39% PHP - 73.61% MySQL) with 23 queries. MORE MORE! :D |
thx, i do what i can to find some more ;)
btw. you should reduce your gzip level from 9 to 1. the 9 isn't so much better in compressing, but the load of a server increases. |
All times are GMT. The time now is 04:06 AM. |
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:
|