Skip to content

drupal cr

Paulo Maia Carvalho edited this page May 20, 2026 · 1 revision

drupal-cr

Rebuild all Drupal caches. The equivalent of drush cr.

Usage

/drupal-cr

What it does

Detects whether the Docker stack is running and routes accordingly:

  • Stack runningdocker exec -w /var/www/html <php-container> vendor/bin/drush cr
  • Local drush availablevendor/bin/drush cr
  • Neither → error with suggestion to run /drupal-serve

When to use

  • After enabling or disabling modules
  • After changing theme files or Twig templates
  • After modifying settings.php or services.yml
  • After updating routes or plugin definitions
  • When you see stale output and suspect a cache issue

Notes

Cache rebuild can take 5–20 seconds on larger projects. The skill waits for completion before reporting success.

Related skills

Clone this wiki locally