Copied to clipboard

Flag this post as spam?

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


  • julius 107 posts 289 karma points
    Sep 20, 2011 @ 02:06
    julius
    0

    Is my macro caching working or not?

    Hi,

    I just set the Cache period on one of my macro's to 120 seconds and put the line below in the macro's user control.

    Generated at <%= DateTime.Now.ToString() %>

    It still generates a new date/time at every page refresh. I also tried enabling Cache by page.

    Shouldn't the time stay the same for 120 seconds?

     

     

  • skiltz 501 posts 701 karma points
    Sep 20, 2011 @ 05:43
    skiltz
    0

    Embedded code in the ASCX will not be cached, only the stuff in codebehind (.cs)

    Hope that helps,
    Matthew

     

  • julius 107 posts 289 karma points
    Sep 20, 2011 @ 14:06
    julius
    0

    It works now. thanks

  • 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