what really happens when installing a module?

Topics: Core, General
Jul 13, 2015 at 1:32 PM
When I install a module, it is normally quite quick and gives me a message saying:

Successfully backed up local package to local folder "D:\FinancialExpress\TrustnetCMS\Modules_Backup\XXXX"
Successfully un-installed local package XXXX
Successfully added 'XXXX' to D:\XXXX\CMS\
The module has been successfully installed.

Then when I click "Pick the features you want enabled" to enable it, it is always take much longer and even timed out once.

Anyone know what this enable button actually doing?
Jul 14, 2015 at 1:48 PM
The installation only copies the module to the disk. Enabling it will run migration code and some sql from Orchard itself to register that the module is enabled. It will also register which version of the migrations where run last. The timeout therefore could come from an sql connection.