[TYPO3-core] RFC: Fix bug #5152: "Duplicate entry" in cache_pagesection when using frames

Steffen Kamper steffen at sk-typo3.de
Sun Feb 3 19:18:35 CET 2008


"Dmitry Dulepov [typo3]" <dmitry at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1202061536.572.typo3-team-core at lists.netfielders.de...
> Hi!
>
> Michael Stucki wrote:
>> There's a famous "duplicate error" which appears under various
>> circumstances. See bug reference for details.
>>
>> Solution:
>> Actually has been an attempt to cleanup the cache access and also make it
>> easier to understand. The solution is of the problem above was just a
>> side-effect of it.
>>
>> Still, it is theoretically possible that the problem still occurs if two
>> similar requests are too short after each other, but I think chances are
>> very rare for this to happen...
>
> If we aim for MySQL 4.2, we could just use ON DUPLICATE KEY UPDATE. This 
> is not DBAL-safe though...
>
> -- 

Why don't we use a general function in t3lib_db for this "ON DUPLICATE KEY 
UPDATE"? DBAL could use the 2-query-way.

vg  Steffen 




More information about the TYPO3-team-core mailing list