I’m not sure what to say about file system cache. The role of file system cache is to keep data in ram to prevent having to read it from the HD. The cache also serves as a write buffer.
The complexity of the filesystem cache is to decide what data to keep, and when to write it. It’s always about compromise.