To be used (document:setCacheFileStale(false)) to ensure the cache is not being updated when closing a document from a forked process.
document:setCacheFileStale(false)
This change is