From 3ae51ab618e5c9802756bc3fcefad96237ebf9d9 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Fri, 28 Feb 2014 12:06:30 +0000 Subject: [PATCH] Issue #2201149 by sidharthap, sandipmkhairnar: Remove comment_entity_info cache deletes. --- core/modules/comment/comment.module | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index a5fcb8ed007..00703784e0a 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -226,7 +226,6 @@ function comment_count_unpublished() { function comment_field_instance_config_insert(FieldInstanceConfigInterface $instance) { if ($instance->getType() == 'comment' && !$instance->isSyncing()) { \Drupal::service('comment.manager')->addBodyField($instance->entity_type, $instance->getName()); - \Drupal::cache()->delete('comment_entity_info'); } } @@ -269,7 +268,6 @@ function comment_field_config_delete(FieldConfigInterface $field) { if ($field->getType() == 'comment') { // Delete all fields and displays attached to the comment bundle. entity_invoke_bundle_hook('delete', 'comment', $field->getName()); - \Drupal::cache()->delete('comment_entity_info'); } } @@ -284,7 +282,6 @@ function comment_field_instance_config_delete(FieldInstanceConfigInterface $inst ':field_id' => $instance->getEntityTypeId() . '__' . $instance->getName(), ))->fetchCol(); entity_delete_multiple('comment', $comments); - \Drupal::cache()->delete('comment_entity_info'); } }