Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module improves GraphQL performance by adding an earlier caching layer. It caches responses for identical GraphQL queries, avoiding repeated parsing and validation for a significant speed boost.

GraphQL Extra Cache Module

This module enhances the caching capabilities of GraphQL requests in a Drupal application. It is designed to work with the graphql and graphql_core_schema modules.

Features

  • The graphql module already has a caching layer, but it is implemented too late in the request lifecycle.
  • This module adds a new cache layer that is implemented earlier in the request lifecycle.
  • The module skips parsing and validating the whole POST body of the request, which can be a performance bottleneck.
  • If the same GraphQL query is requested multiple times, the response will be cached and served from the cache without any additional processing.

This results in a huge performance boost.

Installation

  1. Download and enable the `graphql_extra_cache` module in your Drupal application.
  2. Ensure that the graphql and graphql_core_schema modules are also enabled.

Usage

Once the module is enabled, it alters graphql the route of graphql_core_schema and starts serving from cache.

Note

This module is designed to work with the graphql and graphql_core_schema modules. If you have your own schema, you still can use it, but you need to write your own RouteSubscriberto match and alter the route and add the cache layer.

Activity

Total releases
2
First release
Sep 2025
Latest release
2 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.5 Stable May 6, 2026
1.0.4 Stable Sep 19, 2025