DrByte:
The suggestion is only to change the length of the cache_entry_name field, not the cache_data field.
I regret to report, this didn't fix the issue either.
FWI, I've not discussed this particular 'bug' until now, mainly because I've had nothing to add.
Anyway, I've also got a V151 site that has the same problem, namely
Duplicate entry 'zc_xxxxxxxxxxxxxxxxxxxxxxxx' for key 1 :: insert into db_cache set cache_entry_name = 'zc_xxxxxxxxxxxxxxxxxxxxxx',
I've been trying to crack this nut since December. Still no luck.
It appears to be completely random. Sometimes a day or two can pass with no errors. Other times there could be up to 20 per day.
I've NEVER been able to force the error.
I have noted one thing that I'm hoping has more relevance to you than it does to me. It doesn't matter how often I clean/purge/delete&replace the
db_cache table the duplicate entry always has the same key. From the various reports I've seen, the actual key varies from store to store, but for any given store the key is always the same. Does this mean anything to you? I'm sure it is relevant somehow, but not exactly sure how.
Meanwhile, as far as I can tell, in spite of the scary looking 'FATAL error' warnings, there doesn't appear any evidence of fatal consequences, so I don't think it is something that anyone should lose sleep over.
Cheers
Rod
ps. DB regularly reports ~90kb 'overhead' on the table, even when apparently empty.