Easy way to bypass all caching with Drush or settings.php

Created on 17 February 2023, over 1 year ago
Updated 17 December 2023, 6 months ago

Problem/Motivation

It requires a lot of steps to disable caching, as can be seen on the Disable caching β†’ documentation page.

Proposed resolution

Make it easier to bypass all caching for both theming and code in Drupal 10, by simply running drush cache:disable, and enable again with drush cache:enable.

An alternative method could be adding a one-liner in settings.php:
$settings['caching'] = FALSE;

In the meantime, is something like this possible, bypassing caching by adding a one-liner in a file?
https://www.garfieldtech.com/blog/drupal-cache-disable

Remaining tasks

Create something like ✨ Make it easier for theme builders to enable Twig debugging and disable render cache Fixed for core and module development, and allow enabling them both in an easy way, via GUI, Drush and settings.php.

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
CacheΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡©πŸ‡°Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024