#497

fix possible race conditions
Fix cachefilename for news categories