I have a thread that checks for a file being uploaded every X. Currently, if the document is not present, then uploaded and published, the call to GetDocuments never returns that document. The only way it shows up through the GetDocuments call is if the application is restarted. Is there a refresh/flush I need to call when accessing the LibrariesManager and GetDocuments call this way?
t = 1000 * 60 * 2;
var libMngr = LibrariesManager.GetManager();
var docList = libMngr.GetDocuments()
.Where(d => d.Title.Equals(