diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php index c8c160e..b1fe767 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php @@ -109,6 +109,7 @@ public function submitForm(array &$form, array &$form_state) { drupal_set_message(t('Deleted term %name.', array('%name' => $this->term->label()))); watchdog('taxonomy', 'Deleted term %name.', array('%name' => $this->term->label()), WATCHDOG_NOTICE); $form_state['redirect'] = 'admin/structure/taxonomy'; + // @todo Move to storage controller http://drupal.org/node/2004978 Cache::invalidateTags(array('content' => TRUE)); } diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/VocabularyDelete.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/VocabularyDelete.php index 9aeb127..341ac78 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/VocabularyDelete.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/VocabularyDelete.php @@ -77,7 +77,6 @@ public function submitForm(array &$form, array &$form_state) { drupal_set_message(t('Deleted vocabulary %name.', array('%name' => $this->vocabulary->label()))); watchdog('taxonomy', 'Deleted vocabulary %name.', array('%name' => $this->vocabulary->label()), WATCHDOG_NOTICE); $form_state['redirect'] = 'admin/structure/taxonomy'; - Cache::invalidateTags(array('content' => TRUE)); } }