added update hook to clear cache of vms