The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
No point having 3 $templatesused - combine them into 1 line.
Any template being eval() that's not in $templateused will be 1 query. No question about it. To see exactly what queries are being run, add this line to your config.php file in your admin directory: debug=1 Then run any php file with ?explain=1 at the end of the file, and you will see the list of queries being run. Remember to remove that line from config.php - it's a security risk. |
#12
|
|||
|
|||
N9ne: that post was directed at hellsatan, not erwin
to see the querys on any page add: PHP Code:
|
#13
|
|||
|
|||
Erwin you just beat me to it
|
#14
|
||||
|
||||
Quote:
|
#15
|
|||
|
|||
its also just to make it easier to read, its not going to execute any extra queries or anything.
You can end up doing more table scans than needed if you combine all 3 queries as Anime-Loo said. |
#16
|
||||
|
||||
Forumhome page was : 38 Queries
Forumhome page is now : 32 Queries Yey! Satan |
#17
|
||||
|
||||
PPN - How would you do that?
Satan |
#18
|
||||
|
||||
I found something out guys...
If I were you, I would go through all your files, and add : Code:
,error_nopermission There are no end of files without it Satan |
#19
|
||||
|
||||
In most cases that will actually slow things down (just a bit, but still). Think about how often that page is displayed, as opposed to how often it won't be. It's better to not have the template pulled from the database every time a page is loaded when it is only used maybe 2% of the time.
|
#20
|
||||
|
||||
Have you looked at the vB files, recently if ever?
Have you seen how many times: PHP Code:
Satan |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|