removes unnecessary param from get_cache, adds debug method