move cache responsibilities to config_cache.rb