FIX flush in memory cache