I need to find a way to flush the client-side NFS attribute cache. Stat () causes ctime to be read from the attribute cache, and not the actual value, it takes up to 3 seconds for the actual value to be reflected in the cache. using the "noac" parameter during installation, but will affect long-term performance.
I came across solutions like executing chown on the same file owner, etc., but is there a way to clear the attribute cache before stat () is executed? and this problem only occurs on Redhat Linux and not on FreeBSD. Can someone explain?
source share