Copied to clipboard

Flag this post as spam?

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


  • Rasmus Hummelmose 22 posts 72 karma points
    Mar 25, 2012 @ 19:00
    Rasmus Hummelmose
    0

    Caching doesn't work properly in Umbraco 5

    The Razor in my templates return outdated content. Changing the fields in my content does not invalidate the cache. My code looks as follows:

    @section mainContent
    {
    <div class="box clearfix" id="page-nyheder" style="display:block;">
      <a href="#" class="close"><img src="/Content/Images/close.png" alt="Luk" /></a>
      <h1>@Umbraco.Field("Name")</h1>
      <div class="content fullwidth scroll-pane">
        <div class="content-container startpage" id="content-nyheder" style="display:block;">
        @if (DynamicModel.Children.Any()) {
          foreach (var nyhed in DynamicModel.Children) {
            <div class="newspost">
              <h2>@nyhed.Name</h2>
                @nyhed.indhold
                <span class="date">D. 13. april 2012</span>
            </div>
          }
        }
        </div>
      </div>
    </div>
    }
  • Rasmus Hummelmose 22 posts 72 karma points
    Mar 25, 2012 @ 19:29
    Rasmus Hummelmose
    0

    It was something in my ISS. As usual I can niether edit or delete my own post.

  • 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