Copied to clipboard

Flag this post as spam?

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


  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Dec 03, 2012 @ 15:23
    Matt Brailsford
    0

    Cached Macros Returning Blank

    Hi Guys,

    I have a client running a website in Umbraco 4.5.2 and they seem to have an issue where by an XSLT macro is occasionally returning blank when caching is enabled.

    Strangley, if they have "Cache By Page" enabled and "Cache Personalized" disabled, then the macro are
    sometimes return blank values. Enabling "Cache Personalized" fixes the issue.

    Anyone seen this before? / any ideas I can suggest?

    Cheers

    Matt

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 03, 2012 @ 15:27
    Dirk De Grave
    0

    Been there, done that, an upgrade to 4.7.2 has fixed it for us... It IS documented somewhere, just can't find it atm.

    It's a really inconsistent bug which is really hard to repro. Anyway, an upgrade will fix it! Promise.

    Cheers,

    /Dirk

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 03, 2012 @ 15:30
    Dirk De Grave
    0

    Ok, I found another post so ignore my last post, an upgrade to 4.7.1(.1) should fix it!

     

    Cheers,

    /Dirk

  • Chris Gaskell 59 posts 142 karma points
    Dec 03, 2012 @ 15:34
    Chris Gaskell
    0

    Hmm, I was seeing these problems on 4.9 but only when the site ran under load. The load only needed to be small ~3 concurrent users.

    Essentially I'm caching a macro that's a .NET Custom Control that in turn calls rendertemplate. When the app warmed up under load I was seeing either no text output or the control would have been called a number of times before committing back to the cache so you would see the same HTML repeated a number of times.

    In the end I added a custom cache layer as it seemed the server.execute call from within rendertemplate was causing problems. 

    Cheers,

    Chris

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Dec 03, 2012 @ 15:48
  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Dec 03, 2012 @ 15:54
    Matt Brailsford
    0

    Cool, cheers guys. The client is in the process of upgrading to 4.11 anyway, so I've said they should retest after the upgrade.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft