- $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);