Add flush cache in a certain context