If you list a directory and then list it again within 10 seconds, you will get a cached listing. This is also true of files, where it will always return a file which has been quite recently written to the cache. This is not something that can be controlled, and it would be nice if the application could control it. For example, sometimes it's nice to know that no web activity will occur during a batch run. See WebFileSystem.MEMORY_LISTING_TIMEOUT_MS.
If you list a directory and then list it again within 10 seconds, you will get a cached listing. This is also true of files, where it will always return a file which has been quite recently written to the cache. This is not something that can be controlled, and it would be nice if the application could control it. For example, sometimes it's nice to know that no web activity will occur during a batch run. See WebFileSystem.MEMORY_LISTING_TIMEOUT_MS.