workaround, set test cache before clear whole cache, Rails.cache.clear complains about not existing cache dir.
This commit is contained in:
parent
cd10f5b064
commit
af0ead3822
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ module Cache
|
|||
end
|
||||
def self.clear
|
||||
# puts 'Cache.clear...'
|
||||
# workaround, set test cache before clear whole cache, Rails.cache.clear complains about not existing cache dir
|
||||
Cache.write('test',1 )
|
||||
|
||||
Rails.cache.clear
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue