How to disable a feature while running a command?

Topics: Customizing Orchard, Writing modules
Mar 12, 2012 at 9:48 AM

I'd like to force-disable a feature when people run a certain custom command of ours, and re-enable it afterwards (if it was enabled)

Is this possible?

Reason I ask is because I had the indexing module enabled, our user import went very slow and used a lot of memory.

I disabled it manually now, but I'd like to do this automatically in case a colleague (that isn't aware about this) does the real migration in the future.

Mar 13, 2012 at 12:15 AM

Do it from the command-line?