Added XML struct cache flush on device refresh