Copied to clipboard

Flag this post as spam?

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


  • E.J. Brennan 73 posts 114 karma points
    Apr 23, 2011 @ 16:35
    E.J. Brennan
    0

    Does umbraco cache 'custom' data from non-umbraco tables

    A question: If I introduce some new datatables into my umbraco app to store some traditional SQL data, and then use an asp.net custom control to display that data from one or more tables in my umbraco website, will umbraco perform any caching for me? or will data be pulled from the sql db every time the page refreshes? 

     

  • Tim 1193 posts 2675 karma points MVP 3x c-trib
    Apr 26, 2011 @ 10:04
    Tim
    0

    As far as I know, if you have the custom control in a macro, and enable caching, then Umbraco will cache the output for you. Otherwise the data will be pulled out every time the control is loaded.

    If the user control doesn't need to interact with the Umbraco context, and you don't need to let the users add the control to content pages via the Richtext editor, then I'd consider embedding the user control directly into your template and using .Net caching on the control, as you'll cut out the unecessary step of creating the macro.

    Hope that helps!

Please Sign in or register to post replies

Write your reply to:

Draft