[TYPO3-dev] Can someone update wiki > Caching Framework
Christian Kuhn
lolli at schwarzbu.ch
Tue Nov 15 14:03:57 CET 2011
Hey,
On 11/15/2011 07:17 AM, Georg Ringer wrote:
> 1) Wrong namings
> $GLOBALS['cacheManager'] => should be $GLOBALS['typo3CacheFactory']
It is $GLOBALS['typo3CacheManager'], fixed in wiki.
> 2) if (is_null($entry = ....
> this seems to be wrong as if entry is not found, FALSE is returned, so
> it need to be if (!($entry = ... or checking for false
>
> so also the text "It isn't needed to call has() before accessing cache
> entries with get() as get() returns NULL if no entry exists." could be
> wrong?
Hmmm, I was pretty sure null would be returned, but digging into the
code showed the opposite. I'll write some tests for this and see what we
can achieve (in FLOW3).
Regards
Christian
More information about the TYPO3-dev
mailing list