...
|
...
|
@@ -286,7 +286,16 @@ class SyncMail { |
|
|
$p++;
|
|
|
|
|
|
foreach ($uids as $k=>$uid){
|
|
|
if($this->db->cache(86400*30,false)->value(listsSql::first(dbWhere(['email_id'=>$this->emailId(),'folder_id'=>$folder_id,'uid'=>$uid]),'count(*) as c'))){
|
|
|
|
|
|
$has = redis()->get('h_'.$folder_id.'_'.$uid,function () use ($folder_id,$uid){
|
|
|
$num = $this->db->value(listsSql::first(dbWhere(['email_id'=>$this->emailId(),'folder_id'=>$folder_id,'uid'=>$uid]),'count(*) as c'));
|
|
|
if($num){
|
|
|
redis()->set('h_'.$folder_id.'_'.$uid,1,86400);
|
|
|
}
|
|
|
return $num;
|
|
|
});
|
|
|
|
|
|
if($has){
|
|
|
unset($uids[$k]);
|
|
|
}
|
|
|
}
|
...
|
...
|
|