-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
缓存读取报错:unserialize(): Error at offset 2 of 24544 bytes #3056
Labels
Comments
参考解决方案: 1、可以考虑改用
|
框架层面感觉可以捕抓到异常时,删除缓存,然后返回默认值。但这样会导致开发者不知道这块有异常(自定义序列化机制时) |
Closed
支持,框架层面可以处理一下。增加一个配置项,当读取缓存错误时,是抛出源异常还是视为缓存数据不存在。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
所属功能组件
缓存(cache)
ThinkPHP 版本
v6.1.4
操作系统
Debian11
错误信息
错误所在片段
其它说明
或许是因为cache数据量过大,但是没有设置缓存的报错提示。时而出现,暂不确定解决方案
The text was updated successfully, but these errors were encountered: