当前位置:网站首页>TP5 thinkphp5 report serialization of'closure'is not allowed
TP5 thinkphp5 report serialization of'closure'is not allowed
2022-06-26 12:23:00 【Yotoai Mengtian】
I encountered this problem when writing the query today :

reason : If you have a closure in your global domain, an error will be reported as “ Serialization of closures is not allowed ” , I found what I wrote earlier where() Method uses closures , Query results used cache() Method (cache The method is to serialize the data into a file ), Remove cache This error will not be reported after the method , Or not where The closure method will not report this error , This error will not be reported after any modification of one of them .
边栏推荐
- UDP协议详解[通俗易懂]
- 2022 edition of China's cotton chemical fiber printing and dyeing Market Status Investigation and Prospect Forecast Analysis Report
- Comparison of latest mobile phone processors in 2020 (with mobile phone CPU ladder diagram)
- 国际美妆业巨头押注中国
- Member system + enterprise wechat + applet to help the efficient transformation of private domain
- What software is flush? Is online account opening safe?
- Refined operation, extending the full life cycle value LTV
- 这两天搭建环境遇到的几个问题
- Operation analysis and investment prospect research report of China's organic chemical raw material manufacturing industry 2022-2028
- Omnichannel membership - tmall membership 2: frequently asked questions
猜你喜欢

HUST network attack and defense practice | 6_ IOT device firmware security experiment | Experiment 3 freertos-mpu protection bypass

Black squares in word

AD - 将修改后的 PCB 封装更新到当前 PCB 中

1、 MySQL introduction

Re recognized! Know that Chuangyu has been selected as one of the first member units of the "business security promotion plan"

New routing file in laravel framework

Loggie encoding and newline character test

Matlab programming example: how to count the number of elements in a cell array
![Random numbers in leetcode 710 blacklist [random numbers] the leetcode path of heroding](/img/58/2a56c5c9165295c830082f8b05dd98.png)
Random numbers in leetcode 710 blacklist [random numbers] the leetcode path of heroding

Deep thinking from senior member managers
随机推荐
Demand scale forecast and investment competitiveness analysis report of China's new material market 2022-2028
Refined operation, extending the full life cycle value LTV
On the use of protostaff [easy to understand]
Several problems encountered in setting up the environment in the past two days
Omni channel member link - tmall member link 3: preparation of member operation content
HUST网络攻防实践|6_物联网设备固件安全实验|实验三 FreeRTOS-MPU 保护绕过
How to do well in member marketing three steps to teach you to understand member management
Oracle lock table query and unlocking method
2022 edition of Beijing 5g industry investment planning and development prospect forecast analysis report
Assembly language (7) operation instruction
Scala-day03- operators and loop control
redis通过6379端口无法连接服务器
汇编语言(7)运算指令
房租是由什么决定的
UDP protocol details [easy to understand]
初探Protostuff的使用[通俗易懂]
How to calculate flops and params in deep learning
JMeter response time and TPS listener tutorial
I want to know how the top ten securities firms open accounts? Is online account opening safe?
Black squares in word