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). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). 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). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (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.

Cache Visualization

3 sites No security coverage
View on drupal.org

Cacheviz is a developer tool that visually analyzes Drupal's render cache metadata directly on the page. It helps identify caching problems like uncacheable elements or cache bubble issues by highlighting elements with color-coded overlays and providing an interactive debug panel. This module should only be enabled on development or staging environments.

Cache Visualization (Cacheviz) is a developer tool that visually highlights and analyzes Drupal's render cache metadata directly on the page. It helps identify caching problems like uncacheable elements, per-user cache contexts, and cache bubbling issues.

Do not use on production sites

This module exposes internal cache metadata and should only be enabled on development or staging environments.

Key Benefits

  • Instantly spot uncacheable elements killing your page performance
  • Trace cache bubbling to find the root cause of problems
  • Understand cache contexts and tags at a glance
  • Debug without digging through code or Xdebug

Features

✔ Visual Element Highlighting

Color-coded overlays show cache status at a glance:

  • Red: Uncacheable elements (max-age: 0)
  • Orange: Per-user or session-based cache variations
  • Purple: Time-limited cache
  • Green: Permanently cacheable

✔ Interactive Debug Panel

A floating panel displays:

  • Page-level cache metadata (tags, contexts, max-age)
  • Statistics breakdown of all tracked elements
  • Grouped issues by severity (critical, warning, info)
  • Searchable element list with cache details

✔ Root Cause Analysis

For uncacheable elements, trace the "bubble chain" to find which child element is causing cache problems.

✔ Keyboard Shortcuts

Toggle panel (Ctrl+Shift+C) and highlights (Ctrl+Shift+H).

✔ Path Exclusions

Configure paths where visualization should be disabled (e.g., /admin/*).

✔ Permission-Based Access

Only users with the "View Cacheviz debug information" permission see the visualization.

Post-Installation

  1. Navigate to Administration → Configuration → Development → Cacheviz (/admin/config/development/cacheviz)
  2. Check "Enable Cacheviz" to activate the module
  3. Optionally enable "Auto-highlight problems on page load"
  4. Configure any paths you want to exclude from visualization
  5. Grant the "View Cacheviz debug information" permission to developer roles
  6. Visit any front-end page to see the Cacheviz panel in the bottom-right corner

The panel provides three views:

  • Overview: Page cache status and element breakdown
  • Issues: Grouped caching problems with locate/details actions
  • Elements: Full list of tracked elements with search

Additional Requirements

  • Drupal 10.4 or 11.x
  • No additional modules required

Similar projects

  • Renderviz - Provides similar render cache visualization with a different approach
  • Devel - General development utilities that complement cache debugging
  • WebProfiler - Symfony profiler integration showing detailed cache information in the toolbar

Supporting this Module

Contributions are welcome! Please use the issue queue to report bugs, request features, or submit patches.

Community Documentation

Understanding Drupal's cache system is essential for using this module effectively:

Activity

Total releases
5
First release
Dec 2025
Latest release
7 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.0.x-dev Dev Dec 10, 2025
2.0.0-alpha1 Pre-release Dec 10, 2025
1.0.0-alpha2 Pre-release Dec 10, 2025
1.0.0-alpha1 Pre-release Dec 10, 2025
1.0.x-dev Dev Dec 10, 2025