mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
历史记录增加缓存
This commit is contained in:
@@ -108,7 +108,7 @@ class Index extends Common
|
|||||||
if(!empty($post_id)) {
|
if(!empty($post_id)) {
|
||||||
$model_list_visit->where('post_id', $post_id);
|
$model_list_visit->where('post_id', $post_id);
|
||||||
}
|
}
|
||||||
|
$model_list_visit->cache(60);
|
||||||
$list_visit = $model_list_visit->paginate([
|
$list_visit = $model_list_visit->paginate([
|
||||||
'url' => 'Index/visit',
|
'url' => 'Index/visit',
|
||||||
'list_rows' => 20,
|
'list_rows' => 20,
|
||||||
|
|||||||
Reference in New Issue
Block a user