Detailed guide. An unofficial adaptation of User Guide 12.2. Source updated April 14, 2025; reviewed November 6, 2026. No running-Drupal procedure test has been performed.
Official source ↗ · Previous: 12.1 Understanding Cache and Its Different Layers · Chapter 12 overview · Next: 12.3 Understanding Backups and Restore Verification
Goal and preparation
Refresh internal caches after understanding 12.1 . Identify the target site first. These are documentation examples, not operations performed here.
UI and Drush methods
At /admin/config/development/performance, select Clear all caches and check both the message and original symptom. With Drush:
drush cache:rebuild
drush cache:clear
The source also shows individual types such as render. Available choices vary by Drush version and site; its numbered menu is not a fixed current interface.
Rebuild script alternative
For unavailable administration UI, the source temporarily adds $settings['rebuild_access'] = TRUE; to settings.php, visits /core/rebuild.php, then removes that setting. Locate the actual settings file for the project layout. Our additional checks are to use the managed site’s HTTPS URL, verify a fixed core version first, and promptly restore and verify the temporary setting afterward.
Security note and checks
SA-CORE-2026-007 ↗ fixes insufficient Host validation in rebuild.php that could cause cache poisoning or an external redirect. First fixes were 11.3.12, 11.2.14, 10.6.11 and 10.5.12. Cache clearing does not install the fix; check a currently supported fixed release.
A successful rebuild does not establish resolution of the original fault or clear every external CDN cache.
Sources, credits and changes
Source: Drupal User Guide 12.2 ↗ . Contributors and source links listed in its Attributions: Joe Shindelar ↗ · Jack Haas ↗ · “Clearing or rebuilding Drupal’s cache” ↗ · Drupal Community Documentation ↗ . Refer to the source for writing, editing and adaptation roles, and to the guide-wide credits ↗ .
Copyright remains with the individual contributors; the official copyright page ↗ states © 2015–2025. Changes include reorganized explanations and procedures, our preparation and verification examples, troubleshooting notes, source-interpretation qualifications and release references. Original screenshots and videos are not reproduced. This adapted text is shared under CC BY-SA 2.0 . It is not an official edition or endorsement. This notice does not license unrelated articles or the site design.
Chapter navigation
Previous: 12.1 Understanding Cache and Its Different Layers · Chapter 12 overview · Next: 12.3 Understanding Backups and Restore Verification
Chapter 11 details · Chapter 13 · All chapters · Search official information