chore(faq): cache depends on app version

This commit is contained in:
Colin Darie 2024-04-22 17:31:18 +02:00
parent 0581c67d6c
commit b0503b4f28
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -9,7 +9,7 @@ class FAQsLoaderService
def initialize(substitutions)
@substitutions = substitutions
@faqs_by_path ||= Rails.cache.fetch(["faqs_data", substitutions], expires_in: 1.day) do
@faqs_by_path ||= Rails.cache.fetch(["faqs_data", ApplicationVersion.current, substitutions], expires_in: 1.week) do
load_faqs
end
end