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