I have a set of pages that I am rendering programmatically using the renderResources plugin, called via $modx->runSnippet(). For the most part, everything works fine.
However, there is one (important) template placeholder that is getting populated with information from the previously-rendered page. So, for example, if I render page 100 followed by 101, the pages will both render correctly, but the data intended for page 100 shows up on page 101 instead. In the snippet that is generating the needed data, I have added various debug output that shows the page does correctly generate the right data, but it doesn't populate it in the right page.
I have tried unsetting and overwriting the placeholder and many other things to try to fix this. Other placeholders are working correctly. So far, no luck.
This is a part of a large, fairly complex site, so it is possible that there is something else being cached somewhere that I am not aware of, but I have tried to find where that could be happening and so far no luck.
Any thoughts, suggestions, or ideas?