Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2010-02-06 20:03:24

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Well, until I changed all 3, the extra width didn’t show up. No idea why, as you say its from olden days.

Slowness likely due to a backbone outage that took place in the area around my web host’s servers. Still recovering probably.

Offline

#17 2010-02-06 20:46:51

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: any category listing, any plugin, breaks at the blank between words

JimJoe wrote:

plugin help […] even less php.

Well, the plugin doesn’t have php skill requirement. It works like every other Textpattern tag. But yeah, the documentation might be bit messy and it has atleast four big typos and missing letters. I officially seem to hate “t”. Sorry about that :D

Offline

#18 2010-02-06 20:58:18

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

I got it solved. And frankly, textpattern has the best documentation I have seen out of around 7-9 blog/cms I have tried out.

I checked my other sites on that domain, all are much faster than Crestar.

Offline

#19 2010-02-06 21:51:28

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

JimJoe wrote:

I checked my other sites on that domain, all are much faster than Crestar.

I’d look into it, then. Put your site into debugging mode (see link above) and at the bottom of the page source you’ll see processing time, query time, and time for each query. With a nested category list it’s possible you have some convoluted queries.


Code is topiary

Offline

#20 2010-02-06 22:14:54

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

I don’t see processing time, query time, nor time for each query.

I only see these plugin errors, repeated numerous times at the top of the pages. The Diagnostic page in my cms works fine.

ag error: <txp:stw_category_tree maxlevel=“5” count=”{}” /> -> Notice: Uninitialized string offset: 2 on line 78

textpattern/lib/txplib_misc.php(594) : eval()’d code:45 stw_make_tree()
textpattern/publish.php:1106 stw_category_tree()
textpattern/publish.php:1028 processTags()
textpattern/publish.php:506 parse()
index.php:45 textpattern()

Tag error: <txp:stw_category_tree maxlevel=“5” count=”{}” /> -> Notice: Undefined variable: type on line 76

textpattern/lib/txplib_misc.php(594) : eval()’d code:45 stw_make_tree()
textpattern/publish.php:1106 stw_category_tree()
textpattern/publish.php:1028 processTags()
textpattern/publish.php:506 parse()
index.php:45 textpattern()

Offline

#21 2010-02-06 22:36:28

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

Farther down the page (source):

</html>
<!-- Runtime:    9.2277 -->
<!-- Query time: 8.956575 -->
<!-- Queries: 325 -->
<!-- Memory: 3362Kb, <txp:title /> -->

9 seconds worth of queries is … not good. 325 queries is also not good. I’ll see if I can find anything obvious to fix, but at first glance it’s stw_category_tree that is the gorilla.


Code is topiary

Offline

#22 2010-02-06 23:16:03

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

Short answer is that stw_category_tree is not really up to the task of such a long list of categories. It generates a separate count(*) query for each category. I’m a little surprised at how long each of those queries takes, but even were they faster it is still too many queries. I don’t know of an alternative plugin that would also do both the article count and the nested output (there might be one, I’m just not aware of it). cbs_category_list will do the count, but not nested lists.


Code is topiary

Offline

#23 2010-02-06 23:21:37

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Article count doesn’t matter, if the replacement plugin has can trim the empty categories. I can remove the article count.

edit: the nesting is a requirement.

Last edited by JimJoe (2010-02-06 23:24:22)

Offline

#24 2010-02-06 23:27:09

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Oh, I had left it in debug. I put it back into Live.

Offline

#25 2010-02-06 23:53:12

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

JimJoe wrote:

Article count doesn’t matter, if the replacement plugin has can trim the empty categories. I can remove the article count.

edit: the nesting is a requirement.

Then try it with stw_category_tree without the count attribute and with killempties="y" and see if that improves performance enough.


Code is topiary

Offline

#26 2010-02-07 02:33:56

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Drops from 14 to 9 seconds. I noticed some of the category connections didn’t import properly. That could be part of the slow down, the database is confused… shrug. In the previous blog, I could connect one entry/article to as many categories as I wanted to. For this site, the average was 3, with some going up to 6 categories for one entry/article.

Offline

#27 2010-02-07 13:21:06

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: any category listing, any plugin, breaks at the blank between words

JimJoe wrote:

Drops from 14 to 9 seconds.

Still not good. What happens if you remove the category list?

In the previous blog, I could connect one entry/article to as many categories as I wanted to. For this site, the average was 3, with some going up to 6 categories for one entry/article.

No doubt about it, category support in Txp is … peculiar. And limited. There’s rss_unlimited_categories, unfortunately no longer supported (although there are patches).


Code is topiary

Offline

#28 2010-02-07 15:08:16

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

It goes much faster.

Offline

#29 2010-02-07 15:09:53

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

I should mention that the previous blog was slow as well. So I don’t think its a plugin problem so much as a possible database problem.

Offline

#30 2010-02-07 15:24:01

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: any category listing, any plugin, breaks at the blank between words

Here are links to the old and new sites. I don’t see much difference in speed… my Crestar site is the only one that is slow. Could it be due to import from an even earlier blog that didn’t clear out some crud and that has followed into these two ? ( grasping at straws here…)

Movable Type version of the site

Textpattern version of the site

Offline

Board footer

Powered by FluxBB