$upgrade->setVersion($rev);
CRM_Utils_System::flushCache();
+ $config = CRM_Core_Config::singleton();
+ $config->userSystem->flush();
+
if (version_compare($currentVer, '4.1.alpha1') >= 0) {
CRM_Core_BAO_Setting::updateSettingsFromMetaData();
}
// now enable civicrm module.
module_enable(array('civicrm', 'civicrmtheme'));
- // clear block and page cache, to make sure civicrm link is present in navigation block
- cache_clear_all();
+ // clear block, page, theme, and hook caches
+ drupal_flush_all_caches();
//add basic drupal permissions
civicrm_install_set_drupal_perms();
// now enable civicrm module.
module_enable(array('civicrm'));
- // clear block and page cache, to make sure civicrm link is present in navigation block
- cache_clear_all();
+ // clear block, page, theme, and hook caches
+ drupal_flush_all_caches();
//add basic drupal permissions
db_query('UPDATE {permission} SET perm = CONCAT( perm, \', access CiviMail subscribe/unsubscribe pages, access all custom data, access uploaded files, make online contributions, profile create, profile edit, profile view, register for events, view event info\') WHERE rid IN (1, 2)');