[TYPO3-core] Introducing a BE rootline cache
Oliver Hader
oh at inpublica.de
Tue Feb 27 13:49:15 CET 2007
Hi Martin,
Martin Kutschker wrote:
> + if (is_array($GLOBALS['T3_VAR']['BEgetRootLine_cache'][$uid][$clause][$workspaceOL?1:0])) {
> + return $GLOBALS['T3_VAR']['BEgetRootLine_cache'][$uid][$clause][$workspaceOL?1:0];
> + }
Generally this looks good. But could you please adapt the following:
$cached =& $GLOBALS['T3_VAR']['BEgetRootLine_cache'][$uid][...][...];
if (is_array($cached)) {
return $cached;
}
Result: +1 after testing and reading the patch
olly
--
Oliver Hader
http://inpublica.de/
More information about the TYPO3-team-core
mailing list