Update SuggestionService

pull/1209/head
Daniel Supernault 6 years ago
parent c680c52060
commit ef4a22949c
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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)

Loading…
Cancel
Save