Configure Entity Types

Configure on-demand revalidation for entity types


Next, we need to configure on-demand revalidation for the entity types.

To enable on-demand revalidation for an entity type, we need to configure a revalidator plugin.

A revalidator tells Drupal how to revalidate an entity when it is created, updated or deleted.

Configure Tag-based Revalidation

  1. Visit /admin/config/services/next/entity-types
  2. Click Configure entity type or Edit an existing one
  3. Click On-demand Revalidation
  4. Select Cache Tag as the revalidator Plugin
  5. If using the Path plugin, check the Revalidate page checkbox
  6. Click Save

Configure Path-based Revalidation

  1. Visit /admin/config/services/next/entity-types
  2. Click Configure entity type or Edit an existing one
  3. Click On-demand Revalidation
  4. Select Path as the revalidator Plugin
  5. Check the Revalidate page checkbox
  6. Click Save

If you want to revalidate multiple pages, you can configure Additional paths. Example: you might want to revalidate the /blog landing page when an Article is created.