MODX 2.8.4. How to render chunk with getResources inside?


I have a chunk with some nested getResources.

How could I write a snippet to render the output html to write it into a new chunk for better caching results?

Thank you in advance.


Are you trying to re-create something like getCache?

good question.

I only want a chunk with html code for better performance.
This html code is generated from chunk with nested getresources.

I think there is no way?

I tried it with runSnippet, but there is no nested snippet processed.

So its better to script it directly in a snippet.

not sure, what you are asking, but when you call getResources cached the result will be cached at first call after the cache was cleared.
If you need some special caching, you can use getCache, like Mark has allready mentioned