We have a rather big CRM built on top of Yii. There's one constant problem in application log to do with CDbCache:
2013/04/16 10:50:45 [error] [system.db.CDbCommand] CDbCommand::execute() failed: SQLSTATE: Integrity constraint violation: 1062 Duplicate entry '3c6dfaf87ff9f3fa382f52fc26b9b3cc' for key 'PRIMARY'. The SQL statement executed was: INSERT INTO YiiCache (id,expire,value) VALUES ('3c6dfaf87ff9f3fa382f52fc26b9b3cc',1366106445,:value).
By the looks of it, application tries to cache the same thing twice at the same time. The first save of cache succeeds, while the second one throws that error (only in application log, the actual application doesn't crash). We use minScript (http://www.yiiframew...sion/minscript/) with database as a cache, so most of the values which are cached are css and js files, but things like table schema are sometimes being put twice as well.
Yii: 1.1.13, but happened with previous versions also
Is this a bug, or is it an expected behaviour?
For reproduction, it is hard to do it, as it happens randomly, and I couldn't make it throw this error when I wanted to.