Made updateCache fire callback with (err, cache), and used new cache to render index.