@app.route('/test')
@cache.cached(timeout=50)
def test():
    a = request.args.get('a')
b = request.args.get('b')
return a + b
test.make_cache_key = make_cache_key
flask-cache memoize URL query string parameters as well