fix:修复BUG/升级1.1.6版本

This commit is contained in:
Ying
2023-04-25 20:11:49 +08:00
parent 445e5f9662
commit 6a6866bbaf
2357 changed files with 456920 additions and 140567 deletions

View File

@@ -5,6 +5,8 @@ namespace Webman\ThinkCache;
use Webman\Bootstrap;
use Workerman\Timer;
use think\facade\Cache;
use think\Container;
use think\DbManager;
class ThinkCache implements Bootstrap
{
@@ -20,5 +22,10 @@ class ThinkCache implements Bootstrap
Cache::get('ping');
});
}
if (class_exists(DbManager::class)) {
$manager_instance = Container::getInstance()->make(DbManager::class);
$manager_instance->setCache(Cache::store());
}
}
}
}