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; } }