mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 02:16:08 +03:00
feat: improve sqlite cache robustness (#3715)
This commit is contained in:
parent
f9ec88fb45
commit
0de5180ded
1 changed files with 7 additions and 2 deletions
|
@ -86,8 +86,13 @@ class SQLiteCache implements CacheInterface
|
||||||
$stmt->bindValue(':key', $cacheKey);
|
$stmt->bindValue(':key', $cacheKey);
|
||||||
$stmt->bindValue(':value', $blob, \SQLITE3_BLOB);
|
$stmt->bindValue(':value', $blob, \SQLITE3_BLOB);
|
||||||
$stmt->bindValue(':updated', $expiration);
|
$stmt->bindValue(':updated', $expiration);
|
||||||
$result = $stmt->execute();
|
try {
|
||||||
// Unclear whether we should $result->finalize(); here?
|
$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
|
public function delete(string $key): void
|
||||||
|
|
Loading…
Reference in a new issue