From 5cdd13c5194d1e0c2752b1fe9a85020e33fcbb53 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 15 Feb 2021 13:22:13 -0700 Subject: [PATCH] increase time for excluded actioning site id search --- models/event.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/event.rb b/models/event.rb index 04ad36b8..cdb25fd2 100644 --- a/models/event.rb +++ b/models/event.rb @@ -27,7 +27,7 @@ class Event < Sequel::Model def self.news_feed_default_dataset if SimpleCache.expired?(:excluded_actioning_site_ids) res = DB[%{select distinct(actioning_site_id) from events join sites on actioning_site_id=sites.id where sites.is_banned='t' or sites.is_nsfw='t' or sites.is_deleted='t'}].all.collect {|r| r[:actioning_site_id]} - excluded_actioning_site_ids = SimpleCache.store :excluded_actioning_site_ids, res, 10.minutes + excluded_actioning_site_ids = SimpleCache.store :excluded_actioning_site_ids, res, 2.hours else excluded_actioning_site_ids = SimpleCache.get :excluded_actioning_site_ids end