Closed agoat closed 7 years ago
@contao/developers /cc
@agoat could you please try if removing the line
$kernel->loadClassCache();
from the web/app.php file fixes the issue?
@ausi When this line is removed the pages are loaded corretly.
But this is like the cache is deactivated, am I right?
I don’t think so, at least if you use PHP 7. This will be removed in a future version of Symfony, see symfony/symfony-standard#1030.
Nevertheless, we should investigate why loadClassCache()
causes the issue.
symfony/symfony#20753 appears to be the same problem while menioning another class name.
Imho we should kill loadClassCache()
completely. SF still loads it when running a PHP version lower than PHP7 but to be honest, if you want to optimize for performance, switching to PHP7 is the first thing to do. I don't see why we should even bother about performance stuff in other PHP versions.
Ok, so let's remove this entirely. In version 4.3.1 or in 4.4.0?
4.3.1 is fine with me, it's not a change anyone would notice, I already removed it from my applications.
So did I.
I didn´t understand what $kernel->loadClassCache();
was doing, but I also removed it and everything is fine.
It is a speedup attempt which preloads classes which are needed in most requests. This is however obsolete in PHP7.0 and marginal in PHP 5.6 - therefore it is save to remove it.
Fixed in the following commits:
The http_cache causes an error when symfony 3.2 is installed (within contao 4.3).
After setting the server cache timeout on the page settings (other than zero), there will be no output when the page is cached. So the first call is rendered but the second has no output. After the timeout when the page is revalidated following error is printed:
After the page cache is cleared the next call is rendered and the same is happening as written above.