Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-02-19 10:30:17

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 91
Website

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

#2 2019-02-19 11:07:08

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

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

#3 2019-02-19 11:44:01

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 91
Website

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

#4 2019-02-19 13:08:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

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

#5 2019-02-19 15:52:43

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 91
Website

Re: No performace info in Debugging mode

Bloke wrote #316653:

Hope that helps.

It does thanks.

Offline

Board footer

Powered by FluxBB