Add informative public static members to Core\Cache
This commit is contained in:
parent
71c08a044f
commit
d420a4dec2
1 changed files with 6 additions and 4 deletions
|
@ -24,12 +24,14 @@ class Cache extends \Friendica\BaseObject
|
|||
* @var Cache\ICacheDriver
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue