def make_cache_key(*args, **kwargs):
    path = request.path
args = str(hash(frozenset(list(request.args.items()))))
lang = get_locale()
return (path + args + lang).encode('utf-8')
flask-cache memoize URL query string parameters as well