This project is read-only.

Where can I define startup tasks?

Topics: General, Writing modules
Jan 9, 2013 at 5:07 PM

I have a step I want to run every time Orchard starts. It will basically prime my app cache with some data structures from the db. Where is the proper place to set this up in an Orchard site? 

Jan 11, 2013 at 12:50 PM

What do u mean by 'every time orchard starts'?

is it every new session?

Jan 11, 2013 at 1:04 PM

Yeah, something similar to Globa.asax's Application_Start(), but for Orchard, where I'll have access to injected dependencies, NHibernate entities, etc. 

Jan 11, 2013 at 1:24 PM

Did u see 'Orchard.WarmupStarter' module?  I think that would be helpful.