CRM-14439 - CRM_Core_Invoke::rebuildMenuAndCaches - Change order
authorTim Otten <totten@civicrm.org>
Tue, 8 Apr 2014 23:23:00 +0000 (16:23 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 8 Apr 2014 23:23:00 +0000 (16:23 -0700)
commitae2cab23aeb8a46d5cd094afab138ad6cea27945
tree76d9d2f995dd3e724d4c67179d3d9684c0703d22
parent38a0e912bea7b096654883c7e7605e506dc8eaef
CRM-14439 - CRM_Core_Invoke::rebuildMenuAndCaches - Change order

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
CRM/Core/Invoke.php