Fixed an error in cache.rb