Bug #91086
openPageRenderer doesn't include resources included by USER_INT objects on cache miss
0%
Description
Hello friends :)
I've came across a strange misconduct after reloading a page without cache (logged in on backend and ctrl+f5) on a page with USER objects and exactly one USER_INT that includes a script using PageRenderer->addJsFooterFile. Also happens with CSS.
The file will not be included as long as the cache misses and there is at least one USER object.
After a normal reload (F5) everything works fine.
I was checking out in the core and it seems that a different PageRenderer is being used by ObjectManager than restored in TypoScriptFrontendController:3767 (v.9.5.14).
That solved my problem
Didn't work:
$this->objectManager->get(PageRenderer::class)->addJsFooterFile
Worked:
$GLOBALS['TSFE']->pageRenderer->addJsFooterFile
I also didn't try to reproduce that on a fresh installation yet.