Commit dc57f47d authored by MikeyMJCO's avatar MikeyMJCO
Browse files

Clear Caches before running Job

Clear the caches before running the mosaico_msg_sync job in the upgrader.
parent 208b609a
......@@ -46,6 +46,9 @@ class CRM_Mosaicomsgtpl_Upgrader extends CRM_Mosaicomsgtpl_Upgrader_Base {
*/
public function enable() {
// CRM_Core_DAO::executeQuery('UPDATE foo SET is_active = 1 WHERE bar = "whiz"');
CRM_Core_Invoke::rebuildMenuAndCaches(TRUE);
if (Civi::settings()->get('mosaicomsgtpl_suspend')) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment