cache api call object

This commit is contained in:
Marc Michalsky forumZFD 2021-01-18 10:46:13 +01:00
parent 36cfdd2a2d
commit 1d5c69f470
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
3 changed files with 14 additions and 1 deletions

View file

@ -53,6 +53,11 @@ class CRM_TwingleCampaign_Form_Settings extends CRM_Core_Form {
//TODO: validate Twingle API key
public function postProcess() {
// Delete api key from cache
Civi::cache()->delete('twinglecampaign_twingle_api');
// Set configuration values
Configuration::set($this->exportValues());
parent::postProcess();
}