Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
No performace info in Debugging mode
I have a Textpattern 4.5.7 website and would like to check number of database queries executed in a specific page. When I turn on Debugging mode in Preferences tab, I only get a couple of tag warnings at the top of the live page without any performance info in the HTML code. Am I missing something? Thanks.
Offline
Re: No performace info in Debugging mode
Do you have some kind of code compressing plugin active like aks_header or pat_speeder active?
Your source code looks like you might do. If so, that might be stripping out comments and the db-query infos get inserted as comments at the end of the source.
TXP Builders – finely-crafted code, design and txp
Offline
Re: No performace info in Debugging mode
jakob wrote #316651:
Do you have some kind of code compressing plugin active like aks_header or pat_speeder active?
Thank you Jakob. Yes, that was the problem. Once deactivated pat speeder plugin, performance info magically showed up. Here is the results:
<!— Runtime: 0,1707 —>
<!— Query time: 0,064668 —>
<!— Queries: 23 —>
<!— Memory: 4215Kb, <txp:if_individual_article> —>
According to this article, Runtime and #of queries are ok. Memory is outside expected ranges though. Is there anything I can do to reduce that value?
Offline
Re: No performace info in Debugging mode
gilibaus wrote #316652:
Is there anything I can do to reduce that value?
The ranges aren’t that bad. You can try removing plugins you’re not using on the public side or that are admin+public, then they won’t load at all. The asterisk in the tag trace shows you which is the biggest culprit, so start there. Sometimes it’s an inefficient <txp:article(_custom)>
tag or a loop that can cause memory consumption to increase so check your page templates for that kind of thing – category lists, section list, and article lists.
Hope that helps.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: No performace info in Debugging mode
Offline