Regeneration of flexshares is expensive in update-api
In deploy/update-api, for every share enabled the website engine is restarted, so with four flexshares I get four restarts of php or rh-phpZZ-php-fpm. Is it better to just call /var/clearos/events/network_configuration/flexshare
? This can be done in the upgrade script removing the logic around the current call so /var/clearos/events/network_configuration/flexshare
is called on every upgrade and removing:
// If flexshare is enabled, regenerate config files (fix FTP unencrypted)
if ($details['ShareEnabled'])
$flexshare->update_share($details['Name'], FALSE);
Edited by Nick