[TYPO3-core] Introducing a BE rootline cache
Ingmar Schlecht
ingmar at typo3.org
Tue Feb 27 14:07:36 CET 2007
Oliver Hader schrieb:
> 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
Better without the reference (=&) and just using "=", because that's
faster and more common in PHP*. PHP internally creates a reference if
you use "=" as well anyway and only does a copy if necessary once you
changed something.
cheers
Ingmar
* At least I heard rumors that that was faster... Didn't check by myself.
More information about the TYPO3-team-core
mailing list