FEATURE: Cache Related Topics for longer (#110)

This commit is contained in:
Rafael dos Santos Silva 2023-07-18 11:27:06 -03:00 committed by GitHub
parent 7ea468708c
commit e3b4a73267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -27,10 +27,12 @@ module DiscourseAi
case topic.created_at
when 6.hour.ago..Time.now
15.minutes
when 1.day.ago..6.hour.ago
when 3.day.ago..6.hour.ago
1.hour
when 15.days.ago..3.day.ago
12.hours
else
1.day
1.week
end
begin