I have just learned that if I modify content from a plugin, it's best to do it onPageContentProcessed so it will be cached. Working on another plugin, I have run into an issue that I don't quite understand.
If I have a twig template that lists all of the page's images, that content generated from twig does not seem to show up onPageContentProcessed. $event['page']->content() is null. I can do it all onOutputGenerated of course, but then there's no caching. Any idea where I can grab that twig-generated content so my changes get cached?
Thank you for your time!