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 bdbf111 commit 7516d9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugin/Cache/Objects/CachesInDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 7516d9b

Please sign in to comment.