aboutsummaryrefslogtreecommitdiff
path: root/caches/SQLiteCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'caches/SQLiteCache.php')
-rw-r--r--caches/SQLiteCache.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/caches/SQLiteCache.php b/caches/SQLiteCache.php
index becedde4..d7cba554 100644
--- a/caches/SQLiteCache.php
+++ b/caches/SQLiteCache.php
@@ -86,8 +86,13 @@ class SQLiteCache implements CacheInterface
$stmt->bindValue(':key', $cacheKey);
$stmt->bindValue(':value', $blob, \SQLITE3_BLOB);
$stmt->bindValue(':updated', $expiration);
- $result = $stmt->execute();
- // Unclear whether we should $result->finalize(); here?
+ try {
+ $result = $stmt->execute();
+ // Should $result->finalize() be called here?
+ } catch (\Exception $e) {
+ $this->logger->warning(create_sane_exception_message($e));
+ // Intentionally not rethrowing exception
+ }
}
public function delete(string $key): void