Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-09-01 18:40:16
- janvi
- Member
- From: Norway
- Registered: 2009-05-28
- Posts: 41
Really slow TXP-driven site (tagtrace)
I’m the owner of a website loading extremely slowly. Several of my readers have also complained about this.
This is the Website. (norwegian)
Tagtrace from the frontpage.
<!-- Runtime: 20,568 -->
<!-- Query time: 0,017891 -->
<!-- Queries: 63 -->
<!-- Memory: 4023Kb, <txp:gho_comments_invite /> -->
<!-- txp tag trace:
[SQL (0,000184059143066): select name, data from txp_lang where lang='no-no' AND ( event='public' OR event='common')]
[SQL (0,000191211700439): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0,000372886657715): select * from tru_tags_prefs where 1]
[SQL (0,000124931335449): select page, css from txp_section where name = 'default' limit 1]
[SQL (0,00137996673584): select host from txp_log where ip='91.xx.xx.xx' limit 1]
[SQL (0,000349044799805): insert into txp_log set `time`=now(),page='/',ip='91.xxx.xx.xx',host='91.123.34.22',refer='',status='200',method='GET']
[SQL (8,20159912109E-5): select user_html from txp_page where name='default']
[Side: default]
<txp:output_form form="head" />
[SQL (9,01222229004E-5): select Form from txp_form where name='head']
[Skjema: head]
<txp:output_form form="title_meta" />
[SQL (7,70092010498E-5): select Form from txp_form where name='title_meta']
[Skjema: title_meta]
<txp:if_status>
[<txp:if_status>: true]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_category>
[<txp:if_category>: false]
<txp:if_section name=",default">
[<txp:if_section name=",default">: true]
<txp:site_name />
<txp:site_slogan />
</txp:if_section>
</txp:if_category>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
</txp:if_status>
<txp:meta_keywords />
<txp:output_form form="robots_meta" />
[SQL (8,01086425781E-5): select Form from txp_form where name='robots_meta']
[Skjema: robots_meta]
<txp:if_section name="default,skribent,om">
[<txp:if_section name="default,skribent,om">: true]
<txp:if_category>
[<txp:if_category>: false]
</txp:if_category>
</txp:if_section>
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:output_form form="analytics" />
[SQL (9,48905944824E-5): select Form from txp_form where name='analytics']
[Skjema: analytics]
<txp:output_form form="nettverk" />
[SQL (7,70092010498E-5): select Form from txp_form where name='nettverk']
[Skjema: nettverk]
<txp:php>
</txp:php>
<txp:php>
</txp:php>
<txp:if_section name="default,artikler,blogg,gnu-linux,guider">
[<txp:if_section name="default,artikler,blogg,gnu-linux,guider">: true]
<txp:cbs_category_list showcount="false" activeclass="aktkat" break="li" />
[SQL (0,0020911693573): SELECT c.name, c.title FROM `txp_category` AS c, `textpattern` AS t, `txp_section` AS s WHERE (c.name = t.Category1 OR c.name = t.Category2) AND c.type = 'article' AND t.Section = s.name AND s.on_frontpage = 1 AND t.Posted < now() AND t.Status = 4 GROUP BY c.name ORDER BY c.title]
</txp:if_section>
<txp:output_form form="rss-toolbar" />
[SQL (8,60691070557E-5): select Form from txp_form where name='rss-toolbar']
[Skjema: rss-toolbar]
<txp:output_form form="searchform" />
[SQL (6,98566436768E-5): select Form from txp_form where name='searchform']
[Skjema: searchform]
<txp:site_url />
<txp:output_form form="logo-tittel" />
[SQL (6,00814819336E-5): select Form from txp_form where name='logo-tittel']
[Skjema: logo-tittel]
<txp:site_slogan />
<txp:output_form form="slash-home" />
[SQL (9,79900360107E-5): select Form from txp_form where name='slash-home']
[Skjema: slash-home]
<txp:if_Section name="default">
[<txp:if_Section name="default">: true]
</txp:if_Section>
<txp:if_search>
[<txp:if_search>: false]
<txp:if_category>
[<txp:if_category>: false]
<txp:if_author>
[<txp:if_author>: false]
</txp:if_author>
</txp:if_category>
</txp:if_search>
<txp:output_form form="nav" />
[SQL (0,000108003616333): select Form from txp_form where name='nav']
[Skjema: nav]
<txp:if_section name="artikler">
[<txp:if_section name="artikler">: false]
<txp:if_section name="guider">
[<txp:if_section name="guider">: false]
<txp:if_section name="arkiv,nokkelord">
[<txp:if_section name="arkiv,nokkelord">: false]
<txp:if_section name="blogg">
[<txp:if_section name="blogg">: false]
<txp:if_section name="skribent,publisering-ureg">
[<txp:if_section name="skribent,publisering-ureg">: false]
<txp:if_section name="om,kontakt,hjelp-support">
[<txp:if_section name="om,kontakt,hjelp-support">: false]
<txp:if_section name="2010,2011,2012">
[<txp:if_section name="2010,2011,2012">: false]
<txp:if_section name="gnu-linux">
[<txp:if_section name="gnu-linux">: false]
</txp:if_section>
</txp:if_section>
</txp:if_section>
</txp:if_section>
</txp:if_section>
</txp:if_section>
</txp:if_section>
</txp:if_section>
<txp:if_search>
[<txp:if_search>: false]
<txp:if_category>
[<txp:if_category>: false]
<txp:if_author>
[<txp:if_author>: false]
<txp:article_custom section="artikler,gnu-linux,guider,blogg" status="live" limit="7"/>
[SQL (0,00223112106323): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('artikler','gnu-linux','guider','blogg') order by Posted desc limit 0, 7]
[artikkel 113]
[SQL (0,000266075134277): select Form from txp_form where name='default']
[Skjema: default]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: true]
<txp:output_form form="first-post" />
[SQL (0,000231027603149): select Form from txp_form where name='first-post']
[Skjema: first-post]
<txp:if_article_section name="guider">
[<txp:if_article_section name="guider">: false]
<txp:if_article_section name="gnu-linux">
[<txp:if_article_section name="gnu-linux">: false]
<txp:if_article_section name="artikler">
[<txp:if_article_section name="artikler">: true]
</txp:if_article_section>
</txp:if_article_section>
</txp:if_article_section>
<txp:permlink>
<txp:title />
</txp:permlink>
</txp:if_first_article>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:if_first_article>
[<txp:if_first_article>: true]
<txp:posted format="since" />
</txp:if_first_article>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: true]
<txp:if_article_image>
[<txp:if_article_image>: true]
<txp:if_section name="artikler,blogg,gnu-linux,guider">
[<txp:if_section name="artikler,blogg,gnu-linux,guider">: false]
<txp:permlink>
<txp:article_image class="forsidencenter" />
[SQL (0,000505924224854): select * from txp_image where id = 154]
</txp:permlink>
</txp:if_section>
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
<txp:gho_comments_invite />
[SQL (0,000427961349487): select Annotate, AnnotateInvite from textpattern where ID='113']
[SQL (0,000175952911377): select count(*) from txp_discuss where parentid='113' and visible='1']
</txp:if_first_article>
</txp:if_article_list>
[artikkel 112]
[Skjema: default]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:output_form form="section-info-guide" />
[SQL (0,000235795974731): select Form from txp_form where name='section-info-guide']
[Skjema: section-info-guide]
<txp:if_section name="default">
[<txp:if_section name="default">: true]
<txp:if_article_section name="gnu-linux">
[<txp:if_article_section name="gnu-linux">: false]
<txp:if_article_section name="guider">
[<txp:if_article_section name="guider">: false]
</txp:if_article_section>
</txp:if_article_section>
</txp:if_section>
</txp:if_first_article>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:posted format="%e %B" />
</txp:if_first_article>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:if_article_image>
[<txp:if_article_image>: true]
<txp:permlink>
<txp:article_image thumbnail="1" class="alignleft" />
[SQL (0,000124931335449): select * from txp_image where id = 153]
</txp:permlink>
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
<txp:gho_comments_invite />
[SQL (6,19888305664E-5): select Annotate, AnnotateInvite from textpattern where ID='112']
[SQL (0,000127077102661): select count(*) from txp_discuss where parentid='112' and visible='1']
</txp:if_first_article>
</txp:if_article_list>
[artikkel 110]
[Skjema: default]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:output_form form="section-info-guide" />
[Skjema: section-info-guide]
<txp:if_section name="default">
[<txp:if_section name="default">: true]
<txp:if_article_section name="gnu-linux">
[<txp:if_article_section name="gnu-linux">: false]
<txp:if_article_section name="guider">
[<txp:if_article_section name="guider">: false]
</txp:if_article_section>
</txp:if_article_section>
</txp:if_section>
</txp:if_first_article>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:posted format="%e %B" />
</txp:if_first_article>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:if_article_image>
[<txp:if_article_image>: false]
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
<txp:gho_comments_invite />
[SQL (0,000102043151855): select Annotate, AnnotateInvite from textpattern where ID='110']
[SQL (4,31537628174E-5): select count(*) from txp_discuss where parentid='110' and visible='1']
</txp:if_first_article>
</txp:if_article_list>
[artikkel 111]
[Skjema: default]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:output_form form="section-info-guide" />
[Skjema: section-info-guide]
<txp:if_section name="default">
[<txp:if_section name="default">: true]
<txp:if_article_section name="gnu-linux">
[<txp:if_article_section name="gnu-linux">: false]
<txp:if_article_section name="guider">
[<txp:if_article_section name="guider">: false]
</txp:if_article_section>
</txp:if_article_section>
</txp:if_section>
</txp:if_first_article>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:posted format="%e %B" />
</txp:if_first_article>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:if_article_image>
[<txp:if_article_image>: true]
<txp:permlink>
<txp:article_image thumbnail="1" class="alignleft" />
[SQL (0,000121116638184): select * from txp_image where id = 151]
</txp:permlink>
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
<txp:gho_comments_invite />
[SQL (7,79628753662E-5): select Annotate, AnnotateInvite from textpattern where ID='111']
[SQL (8,29696655273E-5): select count(*) from txp_discuss where parentid='111' and visible='1']
</txp:if_first_article>
</txp:if_article_list>
[artikkel 108]
[Skjema: default]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:output_form form="section-info-guide" />
[Skjema: section-info-guide]
<txp:if_section name="default">
[<txp:if_section name="default">: true]
<txp:if_article_section name="gnu-linux">
[<txp:if_article_section name="gnu-linux">: false]
<txp:if_article_section name="guider">
[<txp:if_article_section name="guider">: true]
</txp:if_article_section>
</txp:if_article_section>
</txp:if_section>
</txp:if_first_article>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:posted format="%e %B" />
</txp:if_first_article>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:if_article_image>
[<txp:if_article_image>: false]
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
<txp:gho_comments_invite />
[SQL (7,70092010498E-5): select Annotate, AnnotateInvite from textpattern where ID='108']
[SQL (4,10079956055E-5): select count(*) from txp_discuss where parentid='108' and visible='1']
</txp:if_first_article>
</txp:if_article_list>
[artikkel 107]
[Skjema: default]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:output_form form="section-info-guide" />
[Skjema: section-info-guide]
<txp:if_section name="default">
[<txp:if_section name="default">: true]
<txp:if_article_section name="gnu-linux">
[<txp:if_article_section name="gnu-linux">: false]
<txp:if_article_section name="guider">
[<txp:if_article_section name="guider">: false]
</txp:if_article_section>
</txp:if_article_section>
</txp:if_section>
</txp:if_first_article>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:posted format="%e %B" />
</txp:if_first_article>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:if_article_image>
[<txp:if_article_image>: true]
<txp:permlink>
<txp:article_image thumbnail="1" class="alignleft" />
[SQL (0,000102043151855): select * from txp_image where id = 149]
</txp:permlink>
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
<txp:gho_comments_invite />
[SQL (0,000147104263306): select Annotate, AnnotateInvite from textpattern where ID='107']
[SQL (6,103515625E-5): select count(*) from txp_discuss where parentid='107' and visible='1']
</txp:if_first_article>
</txp:if_article_list>
[artikkel 101]
[Skjema: default]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:output_form form="section-info-guide" />
[Skjema: section-info-guide]
<txp:if_section name="default">
[<txp:if_section name="default">: true]
<txp:if_article_section name="gnu-linux">
[<txp:if_article_section name="gnu-linux">: true]
</txp:if_article_section>
</txp:if_section>
</txp:if_first_article>
</txp:if_article_list>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:posted format="%e %B" />
</txp:if_first_article>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_first_article>
[<txp:if_first_article>: false]
<txp:if_article_image>
[<txp:if_article_image>: true]
<txp:permlink>
<txp:article_image thumbnail="1" class="alignleft" />
[SQL (0,000134944915771): select * from txp_image where id = 109]
</txp:permlink>
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
<txp:gho_comments_invite />
[SQL (0,000185966491699): select Annotate, AnnotateInvite from textpattern where ID='101']
[SQL (7,20024108887E-5): select count(*) from txp_discuss where parentid='101' and visible='1']
</txp:if_first_article>
</txp:if_article_list>
<txp:output_form form="blogg" />
[SQL (0,000132083892822): select Form from txp_form where name='blogg']
[Skjema: blogg]
<txp:article_custom limit="1" keywords="internt" section="blogg" >
[SQL (0,000805139541626): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('blogg') and (FIND_IN_SET('internt',Keywords)) order by Posted desc limit 0, 1]
[artikkel 85]
<txp:permlink title="Siste innlegg fra bloggen">
<txp:title />
</txp:permlink>
<txp:if_article_image>
[<txp:if_article_image>: true]
<txp:permlink>
<txp:article_image thumbnail="1" class="bloggen" />
[SQL (0,000149965286255): select * from txp_image where id = 75]
</txp:permlink>
</txp:if_article_image>
<txp:excerpt />
<txp:permlink />
</txp:article_custom>
<txp:output_form form="rss-news" />
[SQL (0,000208139419556): select Form from txp_form where name='rss-news']
[Skjema: rss-news]
<txp:smd_xml data="http://news.google.no/news?pz=1&cf=all&ned=no_no&hl=no&q=linux+OR+ubuntu+OR+KDE+OR+Gnome+OR+%22fri+programvare%22+OR+%22%C3%A5pen+kildekode%22&cf=all&output=rss"
record="item" limit="10" format="pubDate|date|%e %B" fields="title, link, pubDate" class="nice-list" wraptag="ul" break="li">
</txp:smd_xml>
<txp:smd_xml data="http://linux1.no/node/feed"
record="item" limit="3" format="pubDate|date|%e %B" fields="title, link, pubDate" class="nice-list" wraptag="ul" break="li">
</txp:smd_xml>
<txp:hide>
</txp:hide>
<txp:output_form form="sidebar" />
[SQL (0,000101089477539): select Form from txp_form where name='sidebar']
[Skjema: sidebar]
<txp:link_to_home />
<txp:link_to_home />
<txp:link_to_home />
<txp:link_to_home />
<txp:link_to_home />
<txp:link_to_home />
<txp:link_to_home />
<txp:link_to_home />
<txp:link_to_home />
<txp:if_section name="default,artikler,guider,gnu-linux,blogg">
[<txp:if_section name="default,artikler,guider,gnu-linux,blogg">: true]
<txp:output_form form="SB-sistekommentarer" />
[SQL (0,000170946121216): select Form from txp_form where name='SB-sistekommentarer']
[Skjema: SB-sistekommentarer]
<txp:wet_recent_comments limit="5" showcomment="yes" maxwords="15" striptags="yes" class="nice-list" wraptag="ul" dateformat="%e %B, %H:%M" />
[SQL (0,000162124633789): select txp_discuss.*,txp_discuss.posted as comment_posted,textpattern.* from txp_discuss left join textpattern on textpattern.ID = txp_discuss.parentid where txp_discuss.visible='1' order by txp_discuss.posted desc limit 5]
<txp:output_form form="SB-mestkommentert" />
[SQL (0,000169038772583): select Form from txp_form where name='SB-mestkommentert']
[Skjema: SB-mestkommentert]
<txp:article_custom limit="5" form="mest-kommentert_liste" sort="comments_count desc" section="artikler,guider,blogg,gnu-linux" class="nice-list" wraptag="ul" />
[SQL (0,00218415260315): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('artikler','guider','blogg','gnu-linux') order by comments_count desc limit 0, 5]
[artikkel 86]
[SQL (0,00022292137146): select Form from txp_form where name='mest-kommentert_liste']
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 40]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 82]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 37]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 56]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
</txp:if_section>
<txp:linklist form="links" class="nice-list" wraptag="ul" />
[SQL (8,58306884766E-5): select *, unix_timestamp(date) as uDate from txp_link where 1=1 order by linksort asc ]
[SQL (6,69956207275E-5): select Form from txp_form where name='links']
[Skjema: links]
<txp:link />
<txp:link_description />
[Skjema: links]
<txp:link />
<txp:link_description />
[Skjema: links]
<txp:link />
<txp:link_description />
<txp:hide>
</txp:hide>
</txp:if_author>
</txp:if_category>
</txp:if_search>
<txp:output_form form="dashboard" />
[SQL (7,29560852051E-5): select Form from txp_form where name='dashboard']
[Skjema: dashboard]
<txp:output_form form="Dash-kol1" />
[SQL (6,89029693604E-5): select Form from txp_form where name='Dash-kol1']
[Skjema: Dash-kol1]
<txp:article_custom section="blogg" limit="5" form="mest-kommentert_liste" class="plain-list" wraptag="ul" />
[SQL (0,000749826431274): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('blogg') order by Posted desc limit 0, 5]
[artikkel 85]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 72]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 66]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 55]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
[artikkel 47]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
<txp:article_custom id="33" form="mest-kommentert_liste" />
[SQL (0,000475883483887): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status >= 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and ID IN (33) order by Posted desc limit 0, 10]
[artikkel 33]
[Skjema: mest-kommentert_liste]
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:comments_count />
<txp:article_custom id="32" form="mest-kommentert_liste" />
[SQL (0,000266075134277): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status >= 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and ID IN (32) order by Posted desc limit 0, 10]
<txp:output_form form="Dash-kol2" />
[SQL (8,32080841064E-5): select Form from txp_form where name='Dash-kol2']
[Skjema: Dash-kol2]
<txp:feed_link section="artikler" wraptag="li">
</txp:feed_link>
<txp:feed_link section="guider" wraptag="li">
</txp:feed_link>
<txp:feed_link section="blogg" wraptag="li">
</txp:feed_link>
<txp:feed_link section="gnu-linux" wraptag="li">
</txp:feed_link>
<txp:output_form form="Dash-kol3" />
[SQL (8,60691070557E-5): select Form from txp_form where name='Dash-kol3']
[Skjema: Dash-kol3]
<txp:output_form form="Dash-kol4" />
[SQL (7,67707824707E-5): select Form from txp_form where name='Dash-kol4']
[Skjema: Dash-kol4]
<txp:output_form form="footer" />
[SQL (7,00950622559E-5): select Form from txp_form where name='footer']
[Skjema: footer]
<txp:php>
</txp:php>
[ ~~~ secondpass ~~~ ]
-->
As you can see, some of these values is very high, although I dont know what’s normal values or not.
On this page I have used quite a few txp-tags. Does this matter?
What’s going on?
Thanks for any responses
Last edited by janvi (2010-09-01 18:43:22)
Imagine a world in which every single person on the planet is given free access to the sum of all human knowledge.
The Future is Open – GNU/Linux
Offline
Re: Really slow TXP-driven site (tagtrace)
janvi wrote:
As you can see, some of these values is very high, although I dont know what’s normal values or not.
Runtime is exceedingly slow, as you knew already, but the total query time is very low.
Unfortunately the tag trace does not show timestamps, making it hard to find the slowdown.
Anything interesting in your <txp:php>
tags?
An approach to diagnosing this is to make a backup of the default template, then start with a blank template and paste chunks in. Obviously better to do this on a test server if you have one set up, otherwise put the site in maintenance mode (as with rvm_maintenance).
Code is topiary
Offline
Re: Really slow TXP-driven site (tagtrace)
Could be a DNS problem. In that case, make sure you also disable DNS lookups in the advanced preferences. And try commenting out the <txp:smd_xml>
tags.
Offline
Re: Really slow TXP-driven site (tagtrace)
As a matter of course for slow-loading sites I delete the sbl.spamhaus.org
from the Advanced Prefs just to see if it helps.
And regarding smd_xml, if it does turn out to be (even part of) the issue — which is quite likely — then I’d strongly suggest using the cache_time
attribute to save hitting the remote site every page load.
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: Really slow TXP-driven site (tagtrace)
You can try rah_runtime – it measures time needed for parse chunks of code.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#6 2010-09-03 20:10:13
- janvi
- Member
- From: Norway
- Registered: 2009-05-28
- Posts: 41
Re: Really slow TXP-driven site (tagtrace)
Looks like the problem disappeared completely by itself. Anyway, thanks for your response. Most likely, I need this advices in the future, as Textpattern is the CMS of my choice.
jsoo wrote..
Anything interesting in your <txp:php> tags?
Just a couple of php-includes, and two pieces of date()
@Bloke
sbl.spamhaus.org is removed since I did install TXP
I’ll try your suggestions, but is quite possible I opne this thread again if the problem would recur. Thanx again;)
Imagine a world in which every single person on the planet is given free access to the sum of all human knowledge.
The Future is Open – GNU/Linux
Offline