diff --git a/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php b/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php index b820435..e564fd0 100644 --- a/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php +++ b/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php @@ -73,7 +73,9 @@ function __construct($plugin_namespaces = array(), $plugin_definition_annotation $this->pluginDefinitionAnnotationName = $plugin_definition_annotation_name; $this->annotationNamespaces = $annotation_namespaces; - $this->fileCache = FileCacheFactory::get('annotation_discovery:' . str_replace('\\', '_', $plugin_definition_annotation_name)); + $file_cache_suffix = str_replace('\\', '_', $plugin_definition_annotation_name); + $file_cache_suffix .= ':' . hash('crc32b', serialize($annotation_namespaces)); + $this->fileCache = FileCacheFactory::get('annotation_discovery:' . $file_cache_suffix); } /**