@cache_page(60, key_prefix=key_prefixer)
def page2(request):
    if not request.GET.get('number'):
        return redirect(request.build_absolute_uri() + '?number=25000000')
    print "CACHE MISS", request.build_absolute_uri()
    t0 = time.time()
    result = sum(x for x in xrange(25000000))
    t1 = time.time()
    print t1 - t0
    return render(
        request,
        'page.html',
        dict(result=commafy(result), page='2')
    )
dataset/ETHPy150Open peterbe/django-fancy-cache/example/example/app/views.py/page2/original