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:
- Start the session
- Run the code above, I get
72
- Create a folder on the server
- Start CMIS Workbench, read the token, it is
73
- Run the code above again while still in the same session, I get
72
<-- Problem
Is there a way to somehow "reset" the session, or clear the cache better?
I would prefer to not create a new session every time.