历史记录增加缓存

This commit is contained in:
2023-06-29 10:39:48 +08:00
parent c0e7430249
commit 766b807f24

View File

@@ -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,