Skip to content

Commit

Permalink
refs #41363, clear cache when add / edit SMS provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Aug 18, 2024
1 parent 26a1dc7 commit b2192c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/SMS/Form/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ public function setDefaultValues() {
* Process the form submission.
*/
public function postProcess() {

CRM_Utils_System::flushCache('CRM_SMS_DAO_Provider');
CRM_Core_BAO_Cache::deleteGroup('SMS Provider');

if ($this->_action & CRM_Core_Action::DELETE) {
CRM_SMS_BAO_Provider::del($this->_id);
Expand Down
1 change: 0 additions & 1 deletion CRM/SMS/Page/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public function run() {
* @param array $action
*/
public function browse($action = NULL) {
CRM_Core_BAO_Cache::deleteGroup('SMS Provider');
$providers = CRM_SMS_BAO_Provider::getProviders();
$rows = array();
foreach ($providers as $provider) {
Expand Down

0 comments on commit b2192c1

Please sign in to comment.