if a "mode" param is present in the request (= on the event views), use it for the cache key. Fixes #9793