Commit e86035f8 by pupi1985

Turned REPLACE statements into INSERT..ON DUPLICATE KEY UPDATE in db/cache.php

parent e9de47fd
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
); );
qa_db_query_sub( qa_db_query_sub(
'REPLACE ^cache (type, cacheid, content, created, lastread) VALUES ($, #, $, NOW(), NOW())', 'INSERT INTO ^cache (type, cacheid, content, created, lastread) VALUES ($, #, $, NOW(), NOW()) ' .
'ON DUPLICATE KEY UPDATE content = VALUES(content), created = VALUES(created), lastread = VALUES(lastread)',
$type, $cacheid, $content $type, $cacheid, $content
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment