Advanced cache fetch for Rails.