Adding cache flush