Copied to clipboard

Flag this post as spam?

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


  • Simon 2 posts 22 karma points
    Nov 21, 2011 @ 13:48
    Simon
    0

    Output cache not working in Default.aspx

    Hello everybody, I wanted to implement an output cache, not using the origienal Umbraco settings.

    I added a caching code to the Page Load Of Default.aspx :

     Response.Cache.SetExpires(DateTime.Now.AddMonths(1));
     Response.Cache.SetCacheability(HttpCacheability.Server);
     Response.Cache.SetValidUntilExpires(true);

    But it doesn't seems to work, I still stop at my brakepoint, and I still get to page_load, anyone has an idea why?

     

    Thank you in advance.

  • Richard Soeteman 4047 posts 12900 karma points MVP 2x
    Nov 21, 2011 @ 16:54
    Richard Soeteman
    0

    Hi,

    Umbraco uses it's own caching mechanism so I think this is not supported. You can cache Macro's and you can cache results yourself in codebehind, but I'm pretty sure you can't set output caching.

    Cheers,

    Richard

  • Simon 2 posts 22 karma points
    Nov 22, 2011 @ 08:27
    Simon
    0

    Thank you Richard for your answer, but  I guess there is something in Umbraco caching system that is preventing the output cache, i wonder where it is...

Please Sign in or register to post replies

Write your reply to:

Draft