Skip to content

A platform for community discussion. Free, open, simple.

PERF: Cache rewind for longer, and remove disabled report (#36532)

Rafael dos Santos Silvabd2defeefff8
diff --git a/plugins/discourse-rewind/app/services/discourse_rewind/fetch_reports.rb b/plugins/discourse-rewind/app/services/discourse_rewind/fetch_reports.rb
index 87dca64ab06..78dd8a943ce 100644
--- a/plugins/discourse-rewind/app/services/discourse_rewind/fetch_reports.rb
+++ b/plugins/discourse-rewind/app/services/discourse_rewind/fetch_reports.rb
@@ -19,7 +19,7 @@ module DiscourseRewind
# @option params [Integer] :username of the rewind
# @return [Service::Base::Context]
- CACHE_DURATION = Rails.env.development? ? 10.seconds : 5.minutes
+ CACHE_DURATION = Rails.env.development? ? 10.seconds : 3.days
# The order here controls the order of reports in the UI,
# so be careful when moving these around.
@@ -38,7 +38,7 @@ module DiscourseRewind
Action::NewUserInteractions,
Action::ChatUsage,
Action::AiUsage,
- Action::FavoriteGifs,
+ #Action::FavoriteGifs,
Action::Assignments,
Action::Invites,
]