From d420a4dec2be1cf9add1488f3e86dccbd8e7b635 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 25 Sep 2018 22:58:04 -0400 Subject: [PATCH] Add informative public static members to Core\Cache --- src/Core/Cache.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Core/Cache.php b/src/Core/Cache.php index 68537c524..ea7807031 100644 --- a/src/Core/Cache.php +++ b/src/Core/Cache.php @@ -23,13 +23,15 @@ class Cache extends \Friendica\BaseObject /** * @var Cache\ICacheDriver */ - private static $driver = null; + private static $driver = null; + public static $driver_class = null; + public static $driver_name = null; public static function init() { - $driver_name = Config::get('system', 'cache_driver', 'database'); - - self::$driver = CacheDriverFactory::create($driver_name); + self::$driver_name = Config::get('system', 'cache_driver', 'database'); + self::$driver = CacheDriverFactory::create(self::$driver_name); + self::$driver_class = get_class(self::$driver); } /**