Add option to avoid edge cache clears in maintenance mode

Created on 11 May 2022, about 3 years ago
Updated 16 July 2025, 21 days ago

Problem/Motivation

We have twice weekly deploys that are clearing the edge caches because our deploy process is to always run a `drush cache:rebuild`. It's hard to deploy without clearing the caches. There are just too many cases where a rebuild is required.

We do all our deploys while in maintenance mode. so we'd like the maintenance mode cache clears to only clear the Drupal caches but not the edge caches. If an edge cache clear is required, we'll do a separate cache rebuild while not in maintenance mode. While I can do this with custom code, it seems like a worthwhile feature for others.

Proposed resolution

Add an option to this module that prevents edge cache clears while in maintenance mode.

Data model changes

A new config key was added. If it's not set, nothing changes. If it is set, then cache rebuilds in maintenance mode won't clear the edge cache.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States douggreen Winchester, VA

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.71.5 2024