chore(faq): cache depends on app version
This commit is contained in:
parent
0581c67d6c
commit
b0503b4f28
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class FAQsLoaderService
|
||||||
def initialize(substitutions)
|
def initialize(substitutions)
|
||||||
@substitutions = 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
|
load_faqs
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue