mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update SuggestionService
This commit is contained in:
parent
c680c52060
commit
ef4a22949c
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue