From 26d2a06b9ad1cdd8d998859e5325a407f2a0874d Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 14 Sep 2023 20:39:36 +0300 Subject: [PATCH] add memcached/memory connection --- src/config/bootstrap.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/config/bootstrap.php b/src/config/bootstrap.php index ee63d61..1ce99ad 100644 --- a/src/config/bootstrap.php +++ b/src/config/bootstrap.php @@ -60,6 +60,18 @@ try { $sphinx = new Sphinx(SPHINX_HOST, SPHINX_PORT); +} catch(Exception $e) { + + var_dump($e); + + exit; +} + +// Connect memcached +try { + + $memory = new Yggverse\Cache\Memory(MEMCACHED_HOST, MEMCACHED_PORT, MEMCACHED_NAMESPACE, MEMCACHED_TIMEOUT + time()); + } catch(Exception $e) { var_dump($e);