From ef4a22949c6b65c549423f14b7207351019b2b9b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 28 Apr 2019 17:43:55 -0600 Subject: [PATCH] Update SuggestionService --- app/Services/SuggestionService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/SuggestionService.php b/app/Services/SuggestionService.php index 37c41d58..37a8dff3 100644 --- a/app/Services/SuggestionService.php +++ b/app/Services/SuggestionService.php @@ -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)