Adds cache to index page. stops short of writing a decorator because I am tired