[Scummvm-git-logs] scummvm-web master -> 7025c556b7db5fef21af57ff01f9e366f3c76d0d
Mataniko
mataniko at gmail.com
Mon Oct 5 04:11:41 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
7025c556b7 WEB: Catch all cache driver errors for fallback
Commit: 7025c556b7db5fef21af57ff01f9e366f3c76d0d
https://github.com/scummvm/scummvm-web/commit/7025c556b7db5fef21af57ff01f9e366f3c76d0d
Author: Mataniko (mataniko at gmail.com)
Date: 2020-10-05T00:11:33-04:00
Commit Message:
WEB: Catch all cache driver errors for fallback
Changed paths:
include/Models/BasicModel.php
diff --git a/include/Models/BasicModel.php b/include/Models/BasicModel.php
index 69481e5f..e6ea3147 100644
--- a/include/Models/BasicModel.php
+++ b/include/Models/BasicModel.php
@@ -3,7 +3,7 @@ namespace ScummVM\Models;
use Phpfastcache\Helper\Psr16Adapter;
use Phpfastcache\Drivers\Redis\Config;
-use Phpfastcache\Exceptions\PhpfastcacheDriverConnectException;
+use Phpfastcache\Exceptions\PhpfastcacheDriverException;
abstract class BasicModel
{
@@ -16,7 +16,7 @@ abstract class BasicModel
$database = $_SERVER['HTTP_HOST'] === 'www.scummvm.org' ? 8 : 7;
$config = new Config(['database' => $database]);
self::$cache = new Psr16Adapter('redis', $config);
- } catch (PhpfastcacheDriverConnectException $ex) {
+ } catch (PhpfastcacheDriverException $ex) {
// Fallback to files based cache
self::$cache = new Psr16Adapter('files');
}
More information about the Scummvm-git-logs
mailing list