Thanks for the reply again.
Everything is very fast with < 1000 articles. Almost all of the calls are cached and once the page renders the cached version seems very fast too.
Even the Articles homepage (/articles) loads VERY slowly when it has 6000 articles. It almost seems like MODX is loading ALL of the articles from the database even though I only want to show 10 articles at a time?
The non getResources and Articles pages (ie a contact page) loads within a second or two so it only seems to be the heavy pages that are failing.
Homepage template (wayfinder removed to help speed)
[[$Header? &class=`homepage` ]]
<div id="articles_feature_container">
<ul id="articles_feature">
[[getResources? &parents=`14` &tvFilters=`Featured==yes` &includeTVs=`1` &includeTVList=`Image` &sortby=`{"publishedon":"DESC"}` &limit=`[[*HomepageFeaturedCount]]` &tpl=`FeaturedArticle` &showHidden=`1` ]]
</ul>
</div>
<div id="left">
<div id="main">
[[*content]]
[[getResources? &parents=`14` &tvFilters=`Featured==` &includeTVs=`1` &includeTVList=`Image,Featured,articlestags` &sortby=`{"publishedon":"DESC"}` &limit=`[[*HomepageArticleCount]]` &tpl=`ArticleRow` &showHidden=`1` ]]
<p id="viewall"><a class="button" href="[[~14]]">View all articles</a></p>
</div>
</div>
<div id="right">
[[$ad_right]]
[[$RightColTabs]]
[[$EmailSubscribe]]
[[$AddressBox]]
</div>
[[$Footer]]
The [[$RightColTabs]] Chunk above has 3 snippet calls.
[[getResources? &parents=`14` &includeTVs=`1` &includeTVList=`Image` &sortby=`{"publishedon":"DESC"}` &limit=`5` &tpl=`ArticleRowMini` &showHidden=`1` ]
[[!getFeed? &url=`removedforprivacy` &tpl=`twitterFeedTpl` &limit=`5` ]]
[[QuipLatestComments? &limit=`5` &tpl=`ArticleRowComment` ]]
I should also mention the ArticleRow chunk has a phpthumbof call:
<div class="post article[[+idx]]">
<h2 class="title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
<p class="post-info">
<span class="calendar">[[+publishedon:strtotime:date=`%b %d, %Y`]]</span>
<span class="tags">[[tolinks? &items=`[[+tv.articlestags]]` &target=`[[*id]]` &useTagsFurl=`1` ]]</span>
<a href="[[~[[+id]]]]#comments" class="comments">Comments ([[!QuipCount? &thread=`article-b14-[[+id]]`]])</a>
</p>
<img class="entry_img" src="[[+tv.Image:isnot=``:then=`[[phpthumbof? &input=`/assets/files/[[+tv.Image]]` &options=`&w=110&h=110&zc=1`]]`:else=`/images/image110x110.png` ]]" alt="[[+pagetitle]]" />
<div class="entry">
<p>[[+introtext:default=`[[+content:ellipsis=`400`]]`]]</p>
</div>
<p class="postmeta">
<a href="[[~[[+id]]]]" class="readmore button">Read more</a>
</p>
</div>
This page loads reasonably with 2000 articles (11 seconds)
It takes 40+ seconds with 6000 articles
The other pages like articles/tags/SampleTag fails almost everytime with 6000 articles.
I hope this helps and I will read that link to see if I can figure anything out.
[ed. note: Qodo last edited this post 14 years, 8 months ago.]