think-cache : Argument 1 passed to think\cache\Driver::unserialize()
讀取緩存think-cache報(bào)錯(cuò)
偶爾會報(bào)default.ERROR: TypeError: Argument 1 passed to think\cache\Driver::unserialize() must be of the type string, bool given
然后造成程序堵塞,和數(shù)據(jù)鎖定,webman一直報(bào)錯(cuò)無法正常運(yùn)行。
\think\facade\Cache::get('config')
Ubuntu 20.04.6
php 7.4.33
Nginx 1.22.1
MySQL 5.6.50
這個(gè)問題我也遇到過。是tp與php版本兼容問題好像。
default.ERROR: TypeError: Argument 1 passed to think\cache\Driver::unserialize() must be of the type string, bool given.
具體我不記得是怎么解決的了,按照這個(gè)來就行了。