Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Dec 18, 2023
1 parent 4ae4d22 commit f373ae8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugin/Cache/Objects/CachesInDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f373ae8

Please sign in to comment.