Perform necessary actions before modules are installed.
This function allows all modules to react prior to a module being installed.
$modules: An array of modules about to be installed.
function hook_modules_preinstall($modules) {
mymodule_cache_clear();
}