Copied to clipboard

Flag this post as spam?

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


  • bh 291 posts 976 karma points
    Feb 11, 2019 @ 15:58
    bh
    0

    Preview vs Publish ?

    I made a content change in Umbraco. When I preview it, I see the new content. When I publish those changes, I do not see the new content. This is the second time I've had this issue in as many days. Any ideas? It feels like a cacheing issue. Hard refreshing the page doesn't resolve the issue.

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Feb 11, 2019 @ 16:11
    Alex Skrypnyk
    0

    Hi

    It can be for some reasons in the code. Can you show how do you render the part that is causing the issue?

  • bh 291 posts 976 karma points
    Feb 11, 2019 @ 16:13
    bh
    0
    @Model.GetPropertyValue("leadershipBio")
    

    I should note on a different not related to this page template...I'm doing this...

    @Html.CachedPartial("cmuCommunities", Model, 3600)
    

    Not sure if that's right with the "Model" like that. I'm doing that cached partial thing on several different places on my site.

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    Feb 11, 2019 @ 17:02
    Dan Diplo
    0

    Do you want the content in the cached partial to be shared across multiple pages or be unique per page? If the latter than you want to use:

    @Html.CachedPartial("cmuCommunities", Model, 3600, cacheByPage: true)
    

    This ensures it's cached, but only for that particular page. Not sure if that is related to your issue, but worth noting.

  • bh 291 posts 976 karma points
    Feb 11, 2019 @ 18:40
    bh
    0

    Good to know Dan thank you!

    It's been over an hour (more than the 3600 partial cache setting that i still don't know if that's impacting this) since my edit, and the edit is still not showing when you hard refresh the published page on the website.

  • bh 291 posts 976 karma points
    Feb 12, 2019 @ 17:55
    bh
    0

    Any suggestions?! A day later, I'm still seeing the old content on the published webpage, but preview shows the right content.

  • bh 291 posts 976 karma points
    Feb 12, 2019 @ 19:16
    bh
    0

    Umbraco.config is showing the old content. I deleted umbraco.config and published my page, and umbraco.config is still showing the old content (aka does not match what's in the umbraco back end).

  • bh 291 posts 976 karma points
    Feb 12, 2019 @ 19:16
    bh
    101

    This worked. Not elegant, but it worked.

    https://www.mydomain.com/Umbraco/dialogs/republish.aspx?xml=true

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies