I have some code that needs to know the latest ChangeToken, so I wrote:
session.Clear();
var token = session.RepositoryInfo.LatestChangeLogToken;
Unfortunately, it does not always return the latest token.
Example:
72
73
72
<-- ProblemIs there a way to somehow "reset" the session, or clear the cache better?
I would prefer to not create a new session every time.
OpenCMIS has the Session.getLatestChangeLogToken()
method for that, which does the same.
Clearing the caches or fetching the repository info is not necessary.