瀏覽代碼

Update SuggestionService

Daniel Supernault 6 年之前
父節點
當前提交
c680c52060
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/Services/SuggestionService.php

+ 4 - 1
app/Services/SuggestionService.php

@@ -37,7 +37,10 @@ class SuggestionService {
 	public static function warmCache()
 	{
 		if(Redis::zcount(self::CACHE_KEY, '-inf', '+inf') == 0) {
-			$ids = Profile::whereNull('domain')->whereIsSuggestable(true)->pluck('id');
+			$ids = Profile::whereNull('domain')
+				->whereIsSuggestable(true)
+				->whereIsPrivate(false)
+				->pluck('id');
 			foreach($ids as $id) {
 				self::set($id);
 			}