[TYPO3-core] RFC #15937: Bug: [Caching framework] Improve error message if no frontend was defined for core caches

Christian Kuhn lolli at schwarzbu.ch
Fri Oct 8 16:36:31 CEST 2010


This is an SVN patch request.

Type: Bugfix

BT: http://bugs.typo3.org/view.php?id=15937

Branches: trunk, 4.4

Problem:
With issue #15389 we un-hardcoded the cache frontends for core caches. 
This now leads to an error if own core caches are defined and the 
frontend setting is missing. t3lib_div::makeInstance will then get null 
as frontend class and just spits error "Class not found", without more 
infromation on what exactly went wrong. This makes this issue hard to 
track down.

Solution:
Throw a more meaningful error message in t3lib_cache if frontend 
definition is missing for core caches.

How to test:
Uncomment the frontend definition of cache_hash, cache_pages, or 
cache_pagesection in t3lib/config_default.pdp and activate 
cachingFramework in localconf.php.

Regards
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15937_01.diff
Type: text/x-patch
Size: 1466 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101008/725c5c12/attachment.bin>


More information about the TYPO3-team-core mailing list