正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -53,12 +53,12 @@ class Folder extends Base { | @@ -53,12 +53,12 @@ class Folder extends Base { | ||
53 | if($folder['email_id'] == $eid){ | 53 | if($folder['email_id'] == $eid){ |
54 | unset($folder['email_id']); | 54 | unset($folder['email_id']); |
55 | // 总数 | 55 | // 总数 |
56 | - $folder['exsts'] = db()->count(listsSql::listCount( | 56 | + $folder['exsts'] = db()->cache(86400)->count(listsSql::listCount( |
57 | dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'deleted' => 0]) | 57 | dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'deleted' => 0]) |
58 | )); | 58 | )); |
59 | if($folder['folder']=='收件箱'){ | 59 | if($folder['folder']=='收件箱'){ |
60 | // 未读 | 60 | // 未读 |
61 | - $folder['unseen'] = db()->count(listsSql::listCount( | 61 | + $folder['unseen'] = db()->cache(86400)->count(listsSql::listCount( |
62 | dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0]) | 62 | dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0]) |
63 | )); | 63 | )); |
64 | }else{ | 64 | }else{ |
-
请 注册 或 登录 后发表评论