workaround, set test cache before clear whole cache, Rails.cache.clear complains about not existing cache dir.

This commit is contained in:
Martin Edenhofer 2014-08-03 15:06:43 +02:00
parent cd10f5b064
commit af0ead3822

View file

@ -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