Skip to content

Commit

Permalink
Merge pull request seek4science#2004 from seek4science/clear-request-…
Browse files Browse the repository at this point in the history
…cache

Clear request store cache if a setting is changed
  • Loading branch information
fbacall authored Oct 4, 2024
2 parents 82961a7 + 8ced1f5 commit 13da5e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/seek/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ def self.settings_cache
end

def self.clear_cache
RequestStore.delete(:config_cache)
cache_store.delete(cache_key)
end

Expand Down

0 comments on commit 13da5e9

Please sign in to comment.