Skip to content

Instantly share code, notes, and snippets.

@ruuds
ruuds / gist:193a8e226e4d739d33faf562bde01b50
Created February 9, 2024 15:59
Drupal 9: This patch implements caching of referencable entities while validating the DefaultSelection entity selection handler of drupal. When referencing lots of entities, this speeds things up considerably in some cases.
diff --git a/core/config/schema/core.data_types.schema.yml b/core/config/schema/core.data_types.schema.yml
index e6d7f243ac..1c2b10c575 100644
--- a/core/config/schema/core.data_types.schema.yml
+++ b/core/config/schema/core.data_types.schema.yml
@@ -848,6 +848,9 @@ entity_reference_selection.default:
auto_create_bundle:
type: string
label: 'Bundle assigned to the auto-created entities.'
+ enable_validation_cache:
+ type: boolean