Added cache flush option