Skip to content

Commit 3829644

Browse files
Cache needs to clear on 4G/5G organization switch (#574)
* Based on 4G/5G switch of the organization, cache needs to clear Co-authored-by: Hirenkumar Parmar <[email protected]>
1 parent 4caa7c2 commit 3829644

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/KeyEntityFormEnhancer.php

+3
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ public function validateForm(array &$form, FormStateInterface $form_state): void
344344
// Test the connection.
345345
$this->connector->testConnection($test_key);
346346
$this->messenger()->addStatus($this->t('Connection successful.'));
347+
348+
// Based on type of organization, cache needs to clear.
349+
drupal_flush_all_caches();
347350
}
348351
catch (\Exception $exception) {
349352
watchdog_exception('apigee_edge', $exception);

src/Plugin/KeyInput/ApigeeAuthKeyInput.php

+1
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ public function processSubmittedKeyValue(FormStateInterface $form_state) {
317317

318318
// Reset values to just `key_value`.
319319
$form_state->setValues(['key_value' => Json::encode(array_filter($input_values))]);
320+
320321
return parent::processSubmittedKeyValue($form_state);
321322
}
322323

0 commit comments

Comments
 (0)