Feature #23473
closedUnecessary require_once in t3lib_cache_Factory
0%
Description
Type:
Feature/ Cleanup
Problem:
Currently when configuring the available cacheBackends and cacheFrontends a path to the class files has to be specified. This file will then be included by require_once in the t3lib_cache_Factory.
This is not necessary because the classes are registered in the autoloader anyway.
Solution:
Only specify a classname and rely on the autoloader to automatically require the needed class.
Note:
For backwards compatibility, I left the current behaviour in the t3lib_cache_Factory, but log to the deprecation log, if a file is specified.
All caching framework test run fine after this change.
How to test:
Turn on the caching famewok.
Apply the patch.
Observe that everything still works like before.
As an addition, the changes in config_default could be reverted and still everything will work, besides the inclusion of the files will be logged to the deprecation log.
(issue imported from #M15586)
Files