Fixed deletion of orphaned cache files