fix:修复BUG/升级1.1.6版本
This commit is contained in:
9
vendor/webman/think-cache/src/ThinkCache.php
vendored
9
vendor/webman/think-cache/src/ThinkCache.php
vendored
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user