mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update SuggestionService
This commit is contained in:
parent
b2563057bc
commit
c680c52060
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue