- Added caching mechanism as an event listener

This commit is contained in:
Dave Mc Nicoll committed 2024-12-02 15:22:30 -05:00
1 parent b601939459
commit 9eed2fe1a8
25 files changed
+607 -402

No files matched your search

+6 -1
View File
@@ -49,7 +49,12 @@ class PdoObject extends PDO {
if (false !== ( $statement = $this->prepare($sql) )) {
return $this->execute($statement, $parameters, true);
}
}
}
catch(\PDOException $pdo) {
if ( substr($pdo->getMessage(), 0, 30) !== 'There is no active transaction' ) {
throw $pdo;
}
}
catch (\Throwable $e) {
throw new \PdoException($e->getMessage() . " `$sql` with data:" . json_encode($parameters));
}