$modx->runSnippet(string $snippetName [, array $params]);
FerX - Developer at Eracom s.r.l.
discuss.answer
Wait a sec ... it says there "When you call a Snippet using runSnippet, the Snippet code is always executed: the results are never returned from cache. It's equivalent to running the Snippet using the [[!uncached]] syntax."
So ... if I call [[SnippetA]] uncached, and SnippetA calls SnippetB with runSnippet ... does the 'parent' call to SnippetA get cached??
I'm guessing YES.
[ed. note: danzg last edited this post 7 years, 9 months ago.]
I agree, but it might complicate your plans that MODX snippets always return a string. I think that's true of runSnippet() as well. If you need an array, you might be able to pass it through a $_SESSION variable, though you might also be able to parse the returned string in SnippetA depending on its structure.