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
|
end
|
||||||
def self.clear
|
def self.clear
|
||||||
# puts 'Cache.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
|
Rails.cache.clear
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue