Ver Fonte

Update SuggestionService

Daniel Supernault há 6 anos atrás
pai
commit
c680c52060
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      app/Services/SuggestionService.php

+ 4 - 1
app/Services/SuggestionService.php

@@ -37,7 +37,10 @@ class SuggestionService {
 	public static function warmCache()
 	public static function warmCache()
 	{
 	{
 		if(Redis::zcount(self::CACHE_KEY, '-inf', '+inf') == 0) {
 		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) {
 			foreach($ids as $id) {
 				self::set($id);
 				self::set($id);
 			}
 			}