Fix caching of stats page and read in years correctly