![]() |
Quote:
by the way i dont change anything in index.php i use the original index.php...... |
maybe your cookie is corrupted.
i know it can't happen because the part of code is not affected by my hack, at least not if you've done everything correct. the last thing is normal, whenever you add or edit a forum on forumhome or add a moderator or something like that, it will just change after the cache has been updated, so whenever one new post has been made. |
I had a problem with this hack, when we were editing some templates for forumhome, they weren't updating on forumhome, so you can't see the changes, and when someone could see the changes, someone else couldn't...all in all I couldn't risk any problems and I just uninstalled the caching part of the hack..
|
@N9ne: It's not a problem.
all you have to do after editing a template on forumhome is to make a new post and then all caches would be updatet... you could also edit templates.php to manually delete all cached versions whenever you make a templateedit. As said, it's not a problem, it's just how caching works without to rewrite hundreds of files ;) |
i just read your instructions to see if this hack would work for my forum.
but this query is much slower then the original ones: PHP Code:
but the rest of this cache looks good :) |
Is there any way to make the one query faster?
|
I've updated my last post due to an cut'n'paste error...
Quote:
it's a good idea trying to decrease the number of queries, but it won't help anything if you replace some small and fast queries with one big and slow query. |
Quote:
https://vborg.vbsupport.ru/showthrea...threadid=38471 Also read this post made by Chen https://vborg.vbsupport.ru/showthrea...638#post254638 Also read Matt's post <- This guy is a db Master BTW. :D https://vborg.vbsupport.ru/showthrea...690#post254690 |
Quote:
MySQL optimizes count(*) queries because it keeps an extra counter in its index-files when using MyISAM Tables. The Index should be read from RAM on heavy-used tables. This kind of queries as well as MAX(indexed-column) can be answered without I/O which makes it really fast. this sum(...,1,0) trick has to read every row from the table or just every entry in its index if its condition matches from index. so this is always slower than reading three single values with three single queries. |
Quote:
Quote:
So, i think your assumption is not correct. It is faster for users with few pm's. |
All times are GMT. The time now is 07:02 PM. |
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:
|