mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
parent
330515b517
commit
e051784e4c
5 changed files with 86 additions and 78 deletions
|
@ -1,5 +1,9 @@
|
|||
class Setting < RailsSettings::CachedSettings
|
||||
class Setting < RailsSettings::Base
|
||||
include Versions # version/setting_version.rb
|
||||
source Rails.root.join('config', 'app.yml')
|
||||
|
||||
# When config/app.yml has changed, you need change this prefix to v2, v3 ... to expires caches
|
||||
# cache_prefix { "v1" }
|
||||
|
||||
def self.reload_settings!
|
||||
STDOUT << "#{Time.zone.now.utc} - Clearing settings cache\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue