当前位置:网站首页>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 .
边栏推荐
- One click deployment of your own community forum
- I'd like to know what preferential activities are available for stock account opening? Is it safe to open an account online?
- Which is safer and better for great wisdom to open an account
- 2016年四川省TI杯电子设计竞赛B题
- 我想知道,股票开户有哪些优惠活动?网上开户是否安全么?
- Five strategies and suggestions of member marketing in consumer goods industry
- Demand scale forecast and investment competitiveness analysis report of China's new material market 2022-2028
- PHP uses laravel pay component to quickly access wechat jsapi payment (wechat official account payment)
- How to do well in member marketing three steps to teach you to understand member management
- 【毕业季·进击的技术er】忆毕业一年有感
猜你喜欢
![[solved] data duplication or data loss after laravel paginate() paging](/img/68/7bf51bbf893a91bee24f5f7d4a369f.jpg)
[solved] data duplication or data loss after laravel paginate() paging

【Redis 系列】redis 学习十六,redis 字典(map) 及其核心编码结构

Realize microservice load balancing (ribbon)
The loss of female scientists

Using the methods in the repository to solve practical problems

4. N queen problem

1、 MySQL introduction

TSMC Samsung will mass produce 3nm chips in 2022: will the iPhone be the first?

SQL injection in Pikachu shooting range

11、 Box styles and user interface
随机推荐
Scala-day06- pattern matching - Generic
2022 edition of investment analysis and "fourteenth five year plan" development prospect forecast report of China's switchgear industry
女性科学家的流失
File decryption in webgame development
How can we reach members more effectively?
Seven major trends deeply affecting the U.S. consumer goods industry in 2022
Polarismesh series articles - concept series (I)
[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure
UDP协议详解[通俗易懂]
PolarisMesh系列文章——概念系列(一)
Loggie encoding and newline character test
I want to know whether flush is a stock market? Is online account opening safe?
Ctfshow web getting started command execution web75-77
Five strategies and suggestions of member marketing in consumer goods industry
Pre knowledge of hash table -- binary search tree
1、 MySQL introduction
Analysis report on China's photovoltaic inverter market prospect forecast and investment strategy recommendations in 2022
Scala problem solving the problem of slow SBT Download
One click deployment of your own community forum
Scala-day02- variables and data types