Copied to clipboard
  • woo123 24 karma points
    Aug 29, 2011 @ 19:01
    woo123
    0

    Razor macros - when they are compiled?

    Gusy sorry if that is something easy, but could someone tell me how razor scripts with business logic are compiled? It's before each pageload or only once at the aplication start?

    Thanks

    david

  • Sebastiaan Janssen8940 karma points admin mvp hq
    Sep 12, 2011 @ 18:20
    Sebastiaan Janssen
    0

    They get "compiled at runtime (on demand)". As far as I understand it, individual files get compiled on a pageload (doesn't have to be the page with the Razor script on it), but they don't seem to cause a full application recycle. Not sure how to test that though, so I might be wrong.

Please Sign in or register to post replies

Write your reply to:

Draft
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.