Jako, is there any workaround to make system events, in this case OnWebPagePrerender, firing? I am trying to alter/inject some things based on the content with a plugin which is hooked to the OnWebPagePrerender.
With OnLoadWebPageCache I haven't had any success either; it works for "normal" sites to e.g. simply attach a text, not for switchTemplate. Like with
$src = &$modx->event->params['resource']->_content;
$src = $src . 'testing things';
$modx->log(modX::LOG_LEVEL_ERROR, 'OnLoadWebPageCache successful');
The event is active and firing (always 2 times for switch template, once for "normal" as my log shows). Priority is 1 for my plugin, 2 for switchtemplate.
SwitchTemplate caching is true, inside as content-to-change I have some migxLoops (cached).