This isn't really going to work - since the set will typically be done before the file is actually opened (so cacheio will be null)

This function will need to save the value, and then call enable_pcflush() inside CCachedFileIO::open().