![]() |
First of all this hack works great for me!!
Thanks Xenon. But i have a problem with my $forum[moderators]. This variable is not working for me anymore. I have deleted this code: PHP Code:
What can i do to make the moderators work. Thanks in advance. |
have you run the last step and modified a forum from your acp to initialise the Mod cache?
|
Yes i have, and my mods are cached in the DB :)
|
then they should also be displayed!
the var is filled, that's why all other mods are added with a , in front to it. maybe you have an disturbing hack installed which doesn't like mine ^^ i know your complicated index.php :p |
No way buddy...my index works!! ;)
But what could it be that this variable don?t work anymore?? I promise, when i put the orginal mod-code back in the file, it works like a charm (but than i get that wierd comma)... :( |
well i know the hack works, and as it used the variable correct, it should show up :)
so it must be your index.php, and no i don't have time to take a closer look at your file ;) |
I don't really know, but most of you guys only speak of reducing queries, but not total page generation time (see here: https://vborg.vbsupport.ru/showthrea...243#post361243)
I installed the hack and got the following timings: WITHOUT Hack: Page generated in 0.12671995 seconds (70.49% PHP - 29.51% MySQL) with 30 queries. [Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 1] [Server Load: 0.33 ? 0.55 : 0.87] WITH Hack: Page generated in 0.23996496 seconds (37.26% PHP - 62.74% MySQL) with 26 queries. [Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 1] [Server Load: 0.33 ? 0.55 : 0.87] ... So yes, queries were reduced by a lot, but total page generation took almost twice as long. So I assume the hack doesn't really do it for me. |
i hope you have run those test a bit more often than just once did ya?
i've tested it several times and the gen time was in average 80% of the old gen time. of course if you just look on the time once it could happen that the time differences so much. |
yup I did... one entire evening testing. Query time was always below non-hack, but final page generation was above. I think the replacement of the pm query routine took most additional time.
|
hmm, could i have some stats of you board?
post ammount, thread ammount, total pm ammount(and the ammount of pm's you have had in your account while testing)... especially the pm ammount would be important, in version1 i know it was slower when there are a lot of pm's of a user that for this user the generation was slower, but for the average users who doesn't have much pm's it was faster. normally all other queries should be faster than the original ones. |
Worked like dream , reduced over 4 querys on my system.
My system = vb 2.3.0 + vbportal + a few homepage mods Page generated in 0.19411397 seconds (70.19% PHP - 29.81% MySQL) with 40 queries. [Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 1] [Server Load: 0.07 ยป 0.06 : 0.01] |
very nice... this is a MUST for me, seeing how i have 37 queries on forumhome :o
|
I also have that comma before the mods on the index page. Not sure how or why its there but it isnt before the hack is installed. I havent done any investigations yet as to why but i will be checking against conflicts with other hacks and will post back.
|
Went from 29 to 25 queries, loads noticably faster too.
Thanks! |
My bad.
|
maybe just your cookie was corrupted.
my hack doesn't change anything which belongs to login procedure. |
Quote:
Thanks for your effort on this hack again, sorry about that. Feel free to delete these last three if it will help from a confusion perspective... |
How do I undo this query:
Code:
ALTER TABLE `forum` ADD `moderators` MEDIUMTEXT NOT NULL |
Quote:
|
Quote:
Code:
ALTER TABLE `forum` DROP `moderators` |
perfect thanks for that. will let you know once my board is in production.
|
Quote:
|
Quote:
well i have no host i build and maintane my own server i am trying my best and upto now i had no problems. anyway this hack has be installed and works just fine i am at the vbmicrostats hack now and hopefully i will set that up to. |
thx a lot xenon, i got now Page generated in 0.1170980 seconds (17.90% PHP - 82.10% MySQL) with 17 queries.
http://www.animeonline.net/forums/ |
Page generated in 0.47 seconds (16.79% PHP - 83.21%MySQL) with 11 queries.
Yay! :) |
When users don't have any new pms since their last visit this is what the Private Message box says:
You have new message(s) since your last visit. where it should be: You have 0 new message(s) since your last visit. Anyone else notice this or have the same problem? Also, it lists fine if there are 1 or more new pms. |
that problem normally can't occur if you have this lines in your code:
PHP Code:
just add it to your code and it'll work |
Thank you so much.
:) |
I have installed it and almost imediately the server loads dropped down to half. Is there a way for me to check how many queries are being requested by typing in some kind of command from phpmyadmin? I dont have the GZIP, Queries hack installed yet. Thanks.
|
anyone tested in 2.3.0 ?
|
@Deeper: you should install teck's microstatshack :)
@xs1: yes, it's used here on vb.org :) |
I use this on 2.3.0 is a very good hack, but i still ahve a big problem. I need to optimize showtheread page. It has to many querries
Any ideea ? |
*gg*
yeah, rewrite the whole file ^^ i didn't found a easy way to optimize showthread.php without rewriting it a lot... |
this is bad. I looked to my online visitors behavior.
I have very few on Forum Home... |
|
I have this hack installed, now since I don't show the moderator column on forum home and removed it's display from the templates, is there some code here that I can get rid of to reduce a query? :D
-Jason |
Yes - just edit index.php and comment out or remove the query that searches for the moderators. That will save you 1 query too. :)
|
Erwin, he has my hack installed!
@Alien: nope, when you have installed my hack the query for the mods is gone already and a cache is used, so you cannot save anything more with removing the mod col |
Oops, sorry! :) I don't know anything about your hack, Xenon. LOL!
|
you should look into vb.org index.php to see most of my hack ;)
|
All times are GMT. The time now is 05:03 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:
|