13.11.2025 | Nikolas Kopp

Cache Debugging for Render Elements

development.services.yml
  renderer.config:
    required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
    auto_placeholder_conditions:
      max-age: 0
      contexts: ['session', 'user']
      tags: []
    debug: true # The debug setting

Issue:

You need to get to know the caching settings for render elements.

Solution:

Drupal 9.5 introduced a debug setting for the renderer configuration to display cache information for each rendered element (see also: https://www.drupal.org/node/3162480).

 

Weitere DevBits

13.11.2025 | Michael Ebert

Warm your Drupal caches after a cache clear

my_module.services.yml
tags:
  - { name: cache_prewarmable }

MyPlugin.php
/**
  * Implements \Drupal\Core\PreWarm\PreWarmableInterface.
  */
public function preWarm(): void {
  $this->getDefinitions();
}

services
drush
caching
API
13.11.2025 | Nikolas Kopp

Clear APC & Opcache

clear_cache.php
<?php

apcu_clear_cache();
opcache_reset();
php
drush
Drush
caching
cache
Debugging
debugging
debug