1
1
Fork 0

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

@ -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);
}
/**