# File lib/rubygems.rb, line 721
  def self.cache_dir(custom_dir=false)
    File.join(custom_dir || Gem.dir, "cache")
  end