Improved handling of cachekeys in Stats.pm to prevent cacheing problems in the dashboard stats.