Copied to clipboard

Flag this post as spam?

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


  • Dora Vouth 2 posts 82 karma points
    1 week ago
    Dora Vouth
    0

    Old content gets loaded on application pool restart

    Hello,

    I'm new to ubraco. I have noticed that each time I restart the application pool on IIS I see an older version of my content. If I republish the entire website in the editor the problem is fixed. My problem is that I have to do this every time I restart the app pool or reset the IIS. I also noticed that the umbraco.config date modified is old and not updated to the the date time I republished my site. Shouldn't the umbraco.config get updated when I republish the site? What am I missing here?

  • Marc Goodson 650 posts 4078 karma points MVP 3x c-trib
    1 week ago
    Marc Goodson
    100

    Hi Dora

    This feels like it might be an issue with Permissions to the /app_data/umbraco.config file

    Umbraco stores published content in an XML file structure in memory, so when you publish or update an item it's this XML structure that is immediately updated in memory, and your frontend site code reads content from the structure from memory...

    a moment later, this updated structure is then saved to disk, usually in the location (it can be configured elsewhere) /app_data/umbraco.config

    ... whenever there is an application pool recycle the storage in memory disappears, so to avoid hitting the database and rebuilding the XML structure again, which would be slow, Umbraco just loads the umbraco.config file from disk into memory, and it has it's up-to-date published content again.

    So from your description, it seems as if the XML structure in memory IS being updated on publish, but the storage file on disk isn't!! so after an application pool recycle it keeps reverting back to the old snapshot of published content.

    Usually this is file permissions, not allowing Umbraco to update the file on disk; have a look at the File and Folder permissions configuration settings:

    https://our.umbraco.com/documentation/getting-started/setup/server-setup/permissions

    but usually you'll need to give the App Pool account your site is running under, modify permissions to the App_data folder.

    regards

    Marc

  • Dora Vouth 2 posts 82 karma points
    1 week ago
    Dora Vouth
    0

    Hello Mark,

    Thank you for your answer! I thought of this but dismissed it because I saw that the cache folder was getting updated and it confused me. I do not understand something: Isn't the xml structure saved on disk with umbraco.config and cache folder getting updated?

Please Sign in or register to post replies

Write your reply to:

Draft