使用ORM模型查询数据
查询语句:
AccessList::where('date','=',$date)
->where('start_time',$start_time)
->where('end_time',$end_time)
->whereIn('state',['1','2'])
->count();
应该是你 opcache 开着呢吧
做了这么多个项目了, 没听说 ORM 有缓存这个说法 :joy:
:joy:
ORM不会有缓存