X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=bin%2Fcli.class.php;h=8f6705f2d0087c1d0eb0c8a6c82ba30db2187da6;hb=fcf073e70411141ec80fe7a5bbe87d564fc80bab;hp=195792554074fd8994f34c275613579a1ecc05c0;hpb=20bf9f67230a5163eb9a4a1f6253e35483b106a5;p=civicrm-core.git diff --git a/bin/cli.class.php b/bin/cli.class.php index 1957925540..8f6705f2d0 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -1,7 +1,7 @@ _action != 'execute' && $this->_joblog) { require_once 'CRM/Core/JobManager.php'; @@ -111,6 +112,8 @@ class civicrm_cli { $this->_params['auth'] = FALSE; $result = civicrm_api($this->_entity, $this->_action, $this->_params); } + CRM_Core_Config::setPermitCacheFlushMode(TRUE); + CRM_Contact_BAO_Contact_Utils::clearContactCaches(); if (!empty($result['is_error'])) { $this->_log($result['error_message']);