I am having a bit of trouble moving a document after it has been published with 4.7.1.1 and 4.8.0. Essentially the code being used is:
// Move the document into a folder. documentObject.Move(parent.ID);
// Tell the umbraco cache that the file has been moved? umbraco.library.RefreshContent();
The document is moved correctly and on checking, it is in the correct location both in the database and xml cache.
When I view the refresh the page in the back office however, the "link to document" on the properties tab still refers to the original location. Linking to the document using NiceURL in the front end also results in the original location and an error.
I can resolve this situation by:
Publishing the node a second time
Republishing the entire site by right clicking on the root node
Recycling the app pool
I guess this means that the updates to the cache file aren't being read into memory (although I could be way of the mark).
I would appreciate any insight you can provide to help me figure out what I am missing.
Memory out of snyc with XML cache?
Dear all,
I am having a bit of trouble moving a document after it has been published with 4.7.1.1 and 4.8.0. Essentially the code being used is:
The document is moved correctly and on checking, it is in the correct location both in the database and xml cache.
When I view the refresh the page in the back office however, the "link to document" on the properties tab still refers to the original location. Linking to the document using NiceURL in the front end also results in the original location and an error.
I can resolve this situation by:
I guess this means that the updates to the cache file aren't being read into memory (although I could be way of the mark).
I would appreciate any insight you can provide to help me figure out what I am missing.
Thank you very much indeed.
Chris
is working on a reply...