Don't enable cache-related settings when installing via the Minimal profile

Created on 8 April 2015, about 10 years ago
Updated 9 May 2025, about 21 hours ago

Drupal 8 is currently enabling a bunch of cache-related settings (e.g. the page cache, CSS/JS aggregation, etc) for sites that install via the Minimal profile.

I think that should be considered more carefully.

The primary audience for the Minimal profile is an advanced site builder who wants to configure a new site from scratch. This person is not necessarily an experienced developer, but probably at least dabbles in a bit of custom code (especially CSS and JS) while building out a site.

Caching and aggregation get in the way of what this user is trying to do, especially if they are making a bunch of small CSS tweaks to a theme. (Of course they can turn these performance settings off, but that's one extra step for them to do before building out their site, and is kind of backwards.) See also: https://www.drupal.org/node/606840#comment-2160470 β†’

It's true there are ways to override cache settings in code, so that they are off for development but left on "for real" in the actual site configuration. These techniques have been used by developers for a long time and have sort of been formalized in Drupal 8 (see https://www.drupal.org/node/2259531 β†’ ). However:

  1. This is pretty advanced. I don't see it as the kind of thing that would come naturally to an advanced site builder who dabbles in occasional dev work.
  2. This technique is optimized for a site that has already launched and has separate dev/production instances. It can be used before that, but for a new site that has a single copy of the site under development, it's a bit of overkill.

More generally, the purpose of the Minimal profile is to be minimal. Caching and aggregation are extra layers on top of your site, so turning them on isn't really consistent with that...

Of course, the downside to this is that people might forget to turn these settings on when they launch their site. That is a risk. But the Minimal profile makes clear it's for advanced users only - and an advanced user should know about Drupal's performance settings. If they're not that advanced, they probably should have used the Standard profile (which I agree should configure these kinds of performance settings to be on by default).

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

install system

Created by

πŸ‡ΊπŸ‡ΈUnited States David_Rothstein

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024