From: Hypolite Petovan Date: Wed, 26 Sep 2018 02:58:04 +0000 (-0400) Subject: Add informative public static members to Core\Cache X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d420a4dec2be1cf9add1488f3e86dccbd8e7b635;p=friendica.git Add informative public static members to Core\Cache --- diff --git a/src/Core/Cache.php b/src/Core/Cache.php index 68537c5249..ea7807031f 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); } /**