From f373ae898a510df99a5363d01a587f5c53d30a4f Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Mon, 18 Dec 2023 11:56:43 -0300 Subject: [PATCH] Update --- plugin/Cache/Objects/CachesInDB.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/Cache/Objects/CachesInDB.php b/plugin/Cache/Objects/CachesInDB.php index e24153e1bc7b..58ff88688385 100644 --- a/plugin/Cache/Objects/CachesInDB.php +++ b/plugin/Cache/Objects/CachesInDB.php @@ -260,7 +260,12 @@ public static function setBulkCache($cacheArray, $metadata, $try = 0, $maxRetrie } $sql = "INSERT INTO " . static::getTableName() . " (name, content, domain, ishttps, user_location, loggedType, expires, timezone, created_php_time, created, modified) - VALUES " . implode(", ", $placeholders) . " ON DUPLICATE KEY UPDATE ..."; + VALUES " . implode(", ", $placeholders) . " + ON DUPLICATE KEY UPDATE + content = VALUES(content), + expires = VALUES(expires), + created_php_time = VALUES(created_php_time), + modified = NOW()"; // Start transaction mysqlBeginTransaction();