Flush/Clear/Rebuild cache without "Administer Site Configuration" permission

Created on 17 April 2017, over 7 years ago
Updated 10 January 2019, almost 6 years ago

I'm setting up an "editor" role for a D8 site. They should be able to flush the cache so they can see their changes on the site. However, flushing the cache requires the "Administer site configuration" permission which would give an editor way more access to the site config than they need. I know I can override this with custom code but this seems like a pretty basic option that should be available "out of the box."

Feature request
Status

Closed: works as designed

Version

8.3 ⚰️

Component
Cache 

Last updated 3 days ago

Created by

🇺🇸United States codesmith San Francisco

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.

  • 🇺🇸United States chuck_theobald

    Thinking this should be part of out-of-the-box Drupal. One example where this would be useful is in breadcrumbs. Changes that would modify the breadcrumb for a page are not effective until the cache clears out. For intance, a content manager can add a new level to breadcrumb paths with changes to URL aliases, but they have no way of seeing this take effect without having an admin flush the caches.

    For now, it looks like leymannx's contribution https://www.drupal.org/project/rebuild_cache_access is the answer.

Production build 0.71.5 2024