Issue Feature Closed

#23473Unecessary require_once in t3lib_cache_Factory

Helmut Hummel 08/28/10, 13:05 updated 03/29/11, 17:44

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.