Invalidate the singleton DirectoryService cache on filesystem changes
This commit is contained in:
@@ -368,8 +368,8 @@ namespace Emby.Server.Implementations.IO
|
||||
return;
|
||||
}
|
||||
|
||||
// Invalidate before the checks below: a change we deliberately do not refresh for still
|
||||
// has to be read correctly the next time somebody looks at that folder.
|
||||
// The injected service is a singleton, so drop the path before the checks below:
|
||||
// a change we deliberately do not refresh for still has to read correctly later.
|
||||
_directoryService.Invalidate(path);
|
||||
|
||||
// Ignore certain files, If the parent of an ignored path has a change event, ignore that too
|
||||
|
||||
Reference in New Issue
Block a user