]> git.mxchange.org Git - friendica.git/commitdiff
Add informative public static members to Core\Cache
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 26 Sep 2018 02:58:04 +0000 (22:58 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 26 Sep 2018 02:58:04 +0000 (22:58 -0400)
src/Core/Cache.php

index 68537c5249c955597d1ce3026e0865d4792a389c..ea7807031fde7389479dfb2bad49c1d342094e2c 100644 (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);
        }
 
        /**