在拉威尔叶片视图中,这样的模板:
@foreach($events as $event)
<p>{{ $event->user->name }}</p>
@endforeach
select * from `event_logs`
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
select * from `users` where `users`.`id` = 1 limit 1
有没有办法告诉它记住用户查询的结果
只需一页的请求
i、 e.不需要任何中期或长期缓存模块,它们要求您跟踪数据何时发生更改。