Change INSERT to REPLACE so we don't get duplicate keys
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 9 Jan 2006 08:50:43 +0000 (08:50 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 9 Jan 2006 08:50:43 +0000 (08:50 +0000)
includes/cachev.php

index ba714be2f582e83681198a7d12ff0a72c29825fe..f96c7ff232057f2340d0a4ab124646873b37a754 100644 (file)
@@ -173,7 +173,7 @@ class cacheV
                }
                
                $this->registry->db->query("
-                       INSERT INTO {$this->hash}
+                       REPLACE INTO {$this->hash}
                                (revision, author, dateline, message, files)
                        VALUES
                                " . implode(",\n", $inserts)