mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Add loggin to cache clear cron #2925
This commit is contained in:
parent
3f9b3e991a
commit
1fbc5ec6ee
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,8 @@ class Setting < RailsSettings::CachedSettings
|
|||
include Versions # version/setting_version.rb
|
||||
|
||||
def self.reload_settings!
|
||||
STDOUT << "#{Time.zone.now.utc} - Clearing settings cache\n"
|
||||
Rails.cache.delete_matched('settings:.*')
|
||||
STDOUT << "#{Time.zone.now.utc} - Settings cache cleared\n"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue