flush cache on write operations