Copied to clipboard

Flag this post as spam?

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


  • Sébastien Richer 194 posts 430 karma points
    Sep 24, 2012 @ 23:23
    Sébastien Richer
    0

    Content not updating unless IIS restart server

    Hello,

    Very similar to http://our.umbraco.org/forum/developers/api-questions/14749-Website-not-updating-unless-recycle-app-poolhttp://our.umbraco.org/forum/ourumb-dev-forum/bugs/12220-Cache-not-updating and http://forum.umbraco.org/yaf_postst1201_Content-not-always-updating-on-the-site.aspx, when I update content nodes and publish that content on my site, the content is not updated on the front end.

    My setup is currently:

    - Content
    - Site A
    - FR
    - Content node A
    - [...]
    - EN
    - Content node A
    - [...] 
    - Site B
    - FR
    - Content node A
    - [...]
    - EN
    - Content node A
    - [...]

    Now my Site A has  "www.sitea.com" and "sitea.com" defaulting to french as values for manage hostnames. FR has "fr.sitea.com" (using french) and EN has "en.sitea.com" (using english). Site B has the exact same setup (different domain.) All this on one Umbraco installation (no farm, nothing fancy) on a virtual dedicated.

    I have 2 websites setup in IIS with the 4 resulting bindings, both use the same local files, they use seperate application pools.

    Now I've gotten this issue on dev before, I just did IISReset to force the update. These sites are now live and updating the content must not require a server restart.

    Has anyone gotten a similar issue? Any workaround / solution paths I can look into?

    Thanks for the help!

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 25, 2012 @ 12:43
  • Remco 4 posts 24 karma points
    Oct 05, 2012 @ 11:46
    Remco
    0

    We have had the same problem. After importing (updated) external data and processing changes into umbraco document attributes a refresh is needed.

    We update/synchronise every 1 hour to keep impact (publishing = expensive) minimal.

    Apart from refreshing custom repositories (not all data is stored into umbraco documents) we refresh umbraco with:

    - umbraco.cms.businesslogic.cache.Cache.ClearAllCache();

    - System.Threading.Thread.Sleep(500);

    - umbraco.library.RefreshContent();

    The reason for the sleep is we found that the ClearAllCache & RefreshContent didn't always pickup the changes without a sleep (0.5 sec). 

    Hope this helps.

  • Remco 4 posts 24 karma points
    Oct 05, 2012 @ 15:21
    Remco
    0

    A small but tricky addition to my previous post.

    If you change a node name, and you use that name for url rewriting you might have trouble getting this specific change "live".

    We only got this working with calling "umbraco.library.RefreshContent();" again but...  from another process.

    Also tried calling different sleep + umbraco.library.RefreshContent()  (repeatingly) but never got the node.Name change fully pushed into the site.

  • Sébastien Richer 194 posts 430 karma points
    Oct 05, 2012 @ 17:36
    Sébastien Richer
    0

    Thanks Remco, could be usefull trick in the future, but we just found the source of the problem yesterday.

    Since our setup is multi-site / multi language, we noticed that we can't publish data to Site A if we connect to the backoffice from siteb.com/umbraco/. From subdomains to another subdomain it seams to work, but there are still issues whith that I want to fully understand.

    I'm looking to find where the manage hostnames information is stored / read by my installation.

    For the moment, if i go on sitea.com/umbraco/ I can correctly publish to Site A.

  • Martin 7 posts 27 karma points
    Jan 02, 2013 @ 11:03
    Martin
    0

    XmlContentCheckForDiskChanges setting in umbracoSettings.config might be the setting you're looking for.

    It seems like umbraco has two levels of cache. One in the xml file, and one in memory. When restarting IIS, or overwritting web.config, the inmemory cache gets erased, and reread from the XML file.

    When XmlContentCheckForDiskChanges is set to true, umbraco should check if the xml cache has changed, and if it has, it should update the inmemory cache.

     

    /Martin

Please Sign in or register to post replies

Write your reply to:

Draft