performance

Optimize Drupal site performance through cache configuration, query tuning, and asset optimization.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/AJV009/drupal-devkit --skill performance-ajv009
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance
Source: https://github.com/AJV009/drupal-devkit/tree/main/plugins/drupal-core/skills/performance
Command: npx skills add https://github.com/AJV009/drupal-devkit --skill performance-ajv009

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drupal performance optimization across all layers to reduce page load times, improve scalability, and deliver a smoother user experience in Drupal sites of any size.

Core Features & Use Cases

  • Cache layer tuning and configuration across Page Cache, Dynamic Page Cache, Render Cache, and Internal Cache.
  • Database query optimization and efficient data loading to avoid N+1 patterns and reduce query overhead.
  • Asset optimization, including CSS/JS aggregation and library usage, to minimize payload and render time.
  • BigPipe, lazy builders, and per-request personalization strategies to serve fast shells with dynamic content loaded later.
  • Use Case: A Drupal site with high-traffic product pages caches static portions and streams personalized sections without blocking initial render.

Quick Start

Run the performance skill to audit a Drupal site's caches, queries, and assets and implement recommended optimizations.

Frequently Asked Questions about performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Drupal site performance for high-traffic pages?

To optimize Drupal performance for high-traffic pages, you tune cache layers like Page Cache and Dynamic Page Cache, optimize database queries to avoid N+1 patterns, and aggregate CSS/JS assets to minimize payload and render time.

What is the best way to use BigPipe and lazy builders in Drupal for personalized content?

BigPipe and lazy builders in Drupal serve fast page shells by caching static portions and streaming personalized, dynamic sections later without blocking the initial render. This requires proper cache contexts and render cache metadata.

How do I configure Drupal render cache metadata and cache contexts correctly?

Configuring Drupal render cache metadata involves attaching proper cache contexts, tags, and max-age to render arrays. This ensures optimized caching for both anonymous and authenticated users while maintaining dynamic content personalization.

Why does my Drupal site have slow page load times despite caching enabled?

Slow Drupal page load times despite caching often stem from N+1 database query patterns, unoptimized asset libraries, or missing render cache metadata. Profiling queries and tuning CSS/JS aggregation can resolve these overhead bottlenecks.

Can I apply Drupal caching strategies to authenticated user dashboards and admin pages?

Yes, Drupal caching strategies apply to authenticated user dashboards and admin pages by utilizing Dynamic Page Cache, render cache metadata, and lazy builders to efficiently serve personalized per-request content without full page caching.

How do I audit a Drupal site for performance bottlenecks and query overhead?

Auditing a Drupal site for performance bottlenecks involves profiling database queries to eliminate N+1 patterns, reviewing cache layer configurations across Page and Render Cache, and assessing CSS/JS asset aggregation to minimize payload overhead.