Configuration::getConfig('FileCache', 'path') ?: PATH_CACHE, 'enable_purge' => Configuration::getConfig('FileCache', 'enable_purge'), ]); case SQLiteCache::class: return new SQLiteCache(); case MemcachedCache::class: return new MemcachedCache(); default: if (!file_exists(PATH_LIB_CACHES . $className . '.php')) { throw new \Exception('Unable to find the cache file'); } return new $className(); } } }