Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module allows you to define custom cache tags for any Drupal entity type to precisely control how your Next.js frontend caches and revalidates content. When content changes, it automatically triggers only the necessary revalidations for your Next.js application, preventing full site rebuilds.

Next Custom Tags provides fine-grained control over Next.js tag-based caching by allowing developers to define custom cache tag plugins for any Drupal entity type.

Implement complex, targeted caching strategies without full site rebuilds. When content changes, the module automatically extracts the relevant tags and revalidates only the affected pages in your Next.js frontend.

Key Features

  • Entity-Agnostic Plugin System: Create plugins for Nodes, Blocks, Menus, Webforms, custom entities, or any other entity type.
  • Automatic Revalidation: When entities are created, updated, or deleted, enabled plugins extract tags and trigger a revalidation request to your Next.js frontend.
  • Manual Control: A dedicated interface to manually revalidate specific tags on demand.
  • Custom Tag Definitions: Define tags that live outside of entities (e.g., global settings tags) for manual management.
  • Developer Visibility: The settings form shows example tags generated by each plugin, so you can verify exactly what is sent to Next.js.
  • Configurable Revalidate URL: Uses the revalidate URL from your Next.js site configuration, with a sensible fallback.

How It Works

  1. Configure: Enable plugins for the entity types you want to track.
  2. Edit Content: When an editor saves an entity, the module invokes the relevant plugin.
  3. Extract: The plugin generates cache tags based on any logic you define — not just entity IDs. Create arbitrary tags matching your frontend components (e.g., collection:featured, menu:main-footer, or taxonomy:term:123).
  4. Revalidate: The module sends a revalidation request to your Next.js site for those specific tags, keeping your frontend up-to-date without rebuilding the entire site.

Configuration & Usage

The module provides three administrative interfaces:

  • Plugin Configuration: /admin/config/services/next-custom-tags/plugin-settings

    Enable or disable plugins per Next.js site, view example tags, and configure manual revalidation options.
  • Manual Revalidation: /admin/config/services/next-custom-tags/revalidate

    Manually trigger revalidation for specific tags when needed.
  • Custom Tag Definitions: /admin/config/services/next-custom-tags/custom-tags

    Register tags that are not automatically extracted from entities but may need manual revalidation.

Included Submodules

  • Next Custom Tags - Block (next_custom_tags_block): Cache tag extraction for Block Content entities.
  • Next Custom Tags - Menu (next_custom_tags_menu): Cache tag extraction for Menu Link Content entities, ensuring navigation updates immediately when menu links change.
  • Next Custom Tags - Webform (next_custom_tags_webform): Cache tag extraction for Webform entities.

Requirements

  • Drupal: Compatible with Drupal 10 and 11.
  • Dependencies: Next.js module

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Jan 2026
Latest release
5 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.0-beta4 Pre-release 10–11 Mar 2, 2026
1.0.0-beta3 Pre-release 10–11 Jan 24, 2026
1.0.0-beta2 Pre-release 10–11 Jan 23, 2026
1.0.0-beta1 Pre-release 10–11 Jan 23, 2026
1.x-dev Dev 10–11 Jan 23, 2026