#61670cleared cache_classes causes fatal error
Description
When configuring the cache_classes to apc backend it may happen (apache reload for example) that the cache gets flushed, thus the cached code will not work anymore, fatals are thrown from bootstrap.
A on-the-fly class cache is not possible, i am aware of that (performance)
An additional check in the autoload function would also be a performance loss
But it might be a solution to ensure those caches are stored in the same backend.
So if you make the cache_classes cache implement the PhpCapeable Interface it would effectively make those caches to be stored in typo3temp/Cache/Code
That would make the bootstrap more robust.
Additionally you should ensure all Classes used in the bootstrap are accessible via convention, so event if the cache_classes is gone the bootstrap does not throw a fatal error. If i remove all t3lib_div from my localconf files (some older extension) there is still a fatal because of some logger from the core, that is not accessible via TYPO3 Naming Convention.
Fatal error: Interface ‘Psr\Log\LoggerInterface’ not found in …/typo3_src/typo3/sysext/core/Classes/Log/Logger.php on line 24
Alternatively you could also check the cache_classes cache very early in the bootstrap, if its empty recreate it…
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.