Currently, CRM_Core_Menu::store() truncates "civicrm_menu" and then refills
it; then, CRM_Core_Config::clearCaches (by-way-of clearDBCache) truncates
"civicrm_menu" without refilling. This seems pointless. (For CRM-14439,
this has the effect of producing an empty menu table after running setup.sh
-- so the table is eventually filled at some uncontrolled future point.)
The evident intent of "rebuildMenuAndCaches" is to truncate and then refill
the table, so this patch does that.
----------------------------------------
* CRM-14439: WP demo - Access denied when visiting breadcrumb links from field listing
https://issues.civicrm.org/jira/browse/CRM-14439
$config = CRM_Core_Config::singleton();
$config->clearModuleList();
+ // also cleanup all caches
+ $config->cleanupCaches($sessionReset || CRM_Utils_Request::retrieve('sessionReset', 'Boolean', CRM_Core_DAO::$_nullObject, FALSE, 0, 'GET'));
+
CRM_Core_Menu::store();
// also reset navigation
CRM_Core_BAO_Navigation::resetNavigation();
- // also cleanup all caches
- $config->cleanupCaches($sessionReset || CRM_Utils_Request::retrieve('sessionReset', 'Boolean', CRM_Core_DAO::$_nullObject, FALSE, 0, 'GET'));
-
// also cleanup module permissions
$config->cleanupPermissions();