Where can I define startup tasks?

Topics: General, Writing modules
Jan 9, 2013 at 4: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 11:50 AM

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

is it every new session?

Jan 11, 2013 at 12: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 12:24 PM

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