[TYPO3-core] Fix #11669: Provide a reason for why $TSFE->set_no_cache() has been triggered

Oliver Hader oliver at typo3.org
Wed Sep 16 13:11:30 CEST 2009


Hi Michael,

Michael Stucki schrieb:
> This is a SVN patch request.
> 
> Type: Feature
> 
> Branches: Trunk
> 
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=11669
> 
> Problem:
> $TSFE->set_no_cache() uses t3lib_div::sysLog() to log why the caching
> had been disabled.
> 
> Currently this is always done by identifying the trigger using a
> backtrace. This is not always helpful, in fact a more precise message
> would be much more helpful.
> 
> Solution:
> Introduce a new parameter $reason. It stays optional, so if it's not
> supplied, the old behaviour remains (identify and output the trigger).

+1 on reading and testing

I attached a modified patch that uses debug_backtrace() without any
further check. That function is part of PHP since 4.3:
http://de3.php.net/debug_backtrace

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list