November Happy Hour will be moved to Thursday December 5th.

repository.Save and cache issue

Vote:
 

When I call the follow line of code and requery the database, I get the correct status of "CheckIn" back.

repository.Save(content: epiWhitePage, action: SaveAction.Publish | SaveAction.ForceCurrentVersion, access: EPiServer.Security.AccessLevel.NoAccess);

When I call the follow line of code and requery the database, I do not get the correct status back unless I shutdown Visual Studio and delete the TempASP.NETFiles directory.

repository.Save(content: epiWhitePage, action: SaveAction.Reject | SaveAction.ForceCurrentVersion, access: EPiServer.Security.AccessLevel.NoAccess);


I'm driving specific actions within the code based on the page status. How do I fix this to report the correct status?

#81709
Feb 24, 2014 15:50
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.