I wrote a stupid-simple plugin which compresses the entire output of a page:
$modx->resource->_output =
preg_replace('/>\s+</ms', '><',
str_replace("\n", '',
$modx->resource->_output));
I set this to run at "OnWebPagePrerender" and it works fine, however, this "minified" output isn't what's being cached.
Is there an event that let's me manipulate $modx->resource->_output
before it gets cached so that I'm not compressing the output on every page load?
#StillWrappingMyHeadAroundRevolution