Update SuggestionService

pull/1209/head
Daniel Supernault 2019-04-28 17:43:55 -06:00
rodzic c680c52060
commit ef4a22949c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -34,9 +34,9 @@ class SuggestionService {
return self::del($val);
}
public static function warmCache()
public static function warmCache($force = false)
{
if(Redis::zcount(self::CACHE_KEY, '-inf', '+inf') == 0) {
if(Redis::zcount(self::CACHE_KEY, '-inf', '+inf') == 0 || $force == true) {
$ids = Profile::whereNull('domain')
->whereIsSuggestable(true)
->whereIsPrivate(false)