Add informative public static members to Core\Cache

This commit is contained in:
Hypolite Petovan 2018-09-25 22:58:04 -04:00
parent 71c08a044f
commit d420a4dec2

View file

@ -24,12 +24,14 @@ class Cache extends \Friendica\BaseObject
* @var Cache\ICacheDriver * @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() public static function init()
{ {
$driver_name = Config::get('system', 'cache_driver', 'database'); self::$driver_name = Config::get('system', 'cache_driver', 'database');
self::$driver = CacheDriverFactory::create(self::$driver_name);
self::$driver = CacheDriverFactory::create($driver_name); self::$driver_class = get_class(self::$driver);
} }
/** /**