Revision 9d43fc71
Added by Michael Moll almost 6 years ago
app/services/proxy_status/base.rb | ||
---|---|---|
end
|
||
|
||
def revoke_cache!(subkey = '')
|
||
Rails.cache.delete(cache_key+subkey)
|
||
Rails.cache.delete(cache_key + subkey)
|
||
end
|
||
|
||
def cache_key
|
||
... | ... | |
|
||
def fetch_proxy_data(subkey = '')
|
||
if cache
|
||
Rails.cache.fetch(cache_key+subkey, :expires_in => cache_duration) do
|
||
Rails.cache.fetch(cache_key + subkey, :expires_in => cache_duration) do
|
||
yield
|
||
end
|
||
else
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop