updated media resource cache to fix bug with deleting old cache files.