[TYPO3-core] RFC: No-brainer #15196: Speedup t3lib_cache_backend_DbBackend::has($entryIdentifier)
Christian Kuhn
lolli at schwarzbu.ch
Thu Jul 22 13:19:20 CEST 2010
Hey,
On 07/22/2010 11:32 AM, Oliver Klee wrote:
>> + if ($cacheEntries == 1) {
>> + $hasEntry = TRUE;
>> }
>
> As this is about the existence of an entry, shouldn't that be>= 1?
Shouldn't happen: identifier should be unique even if there is no unique
constraint defined in db. Still, it won't do any harm if we loosen the
check to >= 1.
Regards
Christian
More information about the TYPO3-team-core
mailing list