From a879ccf6e80faf33ef536d7faeaad78b4938efec Mon Sep 17 00:00:00 2001 From: pupi1985 Date: Wed, 30 Jan 2019 01:59:06 -0300 Subject: [PATCH] Treat blob ids as strings due to size limitations --- qa-include/db/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa-include/db/cache.php b/qa-include/db/cache.php index 0ee1abd95..4030571a9 100644 --- a/qa-include/db/cache.php +++ b/qa-include/db/cache.php @@ -44,7 +44,7 @@ function qa_db_cache_set($type, $cacheid, $content) ); qa_db_query_sub( - 'INSERT INTO ^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 );