Skip to content

Commit 3d013f4

Browse files
committed
Shorter expiration time
1 parent 815126f commit 3d013f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails-settings/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def rails_initialized?
127127
end
128128

129129
def _all_settings
130-
RequestCache.all_settings ||= Rails.cache.fetch(cache_key, expires_in: 1.week) do
130+
RequestCache.all_settings ||= Rails.cache.fetch(cache_key, expires_in: 5.minutes) do
131131
vars = unscoped.select("var, value")
132132
result = {}
133133
vars.each { |record| result[record.var] = record.value }

0 commit comments

Comments
 (0)