Each time a file is changed on disk, it is removed from the file-cache object. However, the watcher is not canceled. Next time the file is requested, a new watcher will be created. If the file is again modified, then served, you end up with three. These file system watchers need to be canceled when the file changes, and a new one created only when the file is reloaded as it is served.
Each time a file is changed on disk, it is removed from the file-cache object. However, the watcher is not canceled. Next time the file is requested, a new watcher will be created. If the file is again modified, then served, you end up with three. These file system watchers need to be canceled when the file changes, and a new one created only when the file is reloaded as it is served.