Add an automatic cache flush