From 7516d9b33c0d86d8aadcd0ecaa17bfd0ac1ea4ff Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Mon, 18 Dec 2023 12:32:35 -0300 Subject: [PATCH] Update --- plugin/Cache/Objects/CachesInDB.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/Cache/Objects/CachesInDB.php b/plugin/Cache/Objects/CachesInDB.php index 72e83313d5e9..c2fb60702b92 100644 --- a/plugin/Cache/Objects/CachesInDB.php +++ b/plugin/Cache/Objects/CachesInDB.php @@ -267,15 +267,15 @@ public static function setBulkCache($cacheArray, $metadata, $batchSize = 50) { modified = NOW()"; // Start transaction - //mysqlBeginTransaction(); + mysqlBeginTransaction(); try { - $result = sqlDAL::writeSql($sql, implode('', $formats), $values); - //mysqlCommit(); + $result &= sqlDAL::writeSql($sql, implode('', $formats), $values); + mysqlCommit(); } catch (\Throwable $th) { - //mysqlRollback(); + mysqlRollback(); _error_log($th->getMessage() . ' '.$sql, AVideoLog::$ERROR); - return false; + //return false; } }