Fix #1352 Add Flush for Cache

Fix #1352 Add Flush for Cache