Sorry to dredge this back up, but after upgrading to 2.1.2, there is still some "strange" behavior regarding nested tags.
1) Take the nested tags in my first post. After upgrading to 2.1.2, both tags must be called uncached, or the content seems to be cached. Combinations I’ve tried:
getResources cached, getReqParam cached -> cached (expected)
getResources uncached, getReqParam cached -> cached (?)
getResources cached, getReqParam uncached -> cached (expected)
getResources uncached, getReqParam uncached -> uncached (expected)
Why is the content cached when getResources is called
uncached and getReqParam is cached? Is this the expected behavior in 2.1 now?
2) To bring up my original point (first post): in 2.0, using my original tag calls (getResources cached, getReqParam uncached), the output of each result set seemed to be cached, while still displaying the requested child documents for each parent. So my menu looked something like:
Parent 1 (id: 5)
Parent 2 (id: 6)
Parent 3 (id: 7)
Clicking on parent 1 sends a request to resource 20 whose content is the getResources/getReqParam combo. It loads the children for resource 5. Ditto for resource 6 and 7 (they all use resource 20 for AJAX calls).
I know *something* was cached, because the AJAX calls would complete noticeably faster the second time for each parent - especially for parents with many children (100+) - but it seems like this behavior is no longer possible in 2.1. Any ideas?
3) I use getResources (cached call) to display news on my main page. The chunk I use looks like this:
<div class="sitePost">
<h2>
<span class="postTitle"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></span>
<span class="postTime">[[+publishedon:strtotime:date=`[[++salsrealm.dateFormat]]`]] [[%by? &namespace=`salsrealm` &topic=`default`]] [[+publishedby:userinfo=`username`]]</span>
</h2>
<div class="postContent">
[[+content]]
[[+tv.commentsTopic:cat=`[[+tv.tags]]`:notempty=`<p class="postMeta">
[[+tv.commentsTopic:notempty=`<a href="[[+tv.commentsTopic]]">[[%salsrealm.discuss]]</a> | `]]
[[+tv.tags:notempty=`[[%salsrealm.tags]]: [[tolinks?&items=`[[+tv.tags]]`&tagRequestParam =`tags`&tagKey=`tags`&target=`1324`]]`:default=`Not Tagged`]]
</p>`]]
</div>
</div>
In MODx <= 2.1.1 this worked just fine. However, now, I’m having an issue with tolinks... This block completely disappears (as if it gets eaten by the parser):
[[+tv.commentsTopic:cat=`[[+tv.tags]]`:notempty=`<p class="postMeta">
[[+tv.commentsTopic:notempty=`<a href="[[+tv.commentsTopic]]">[[%salsrealm.discuss]]</a> | `]]
[[+tv.tags:notempty=`[[%salsrealm.tags]]: [[tolinks?&items=`[[+tv.tags]]`&tagRequestParam =`tags`&tagKey=`tags`&target=`1324`]]`:default=`Not Tagged`]]
</p>`]]
This block seems to just disappear - even after adding a :default=`I’m Empty` condition results in nothing being output. The rest of the chunk displays fine. If I move the tolinks snippet outside the [[+tv.tags:notempty=``]] condition (eg just after that tag) everything works fine. It just seems odd that a snippet would break an output modifier like this.