Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christopher 23 posts 96 karma points
    Oct 09, 2013 @ 13:45
    Christopher
    0

    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:

    // 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.

    Thank you very much indeed.

     

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft