Skip to content

leymannx/rebuild_cache_access

Repository files navigation

Rebuild Cache Access

composer require drupal/rebuild_cache_access

This module provides a new permission: rebuild cache access. Every role with this permission set will have a nice and big Rebuild Cache admin toolbar button. Clicking this button simply fires drupal_flush_all_caches(). That's all.

Note: Normally it should be sufficient that all relevant caches are flushed automatically when changes to content are made. Nevertheless in real world it sometimes may be necessary to have other roles than the ones with administer site configuration permission being able to rebuild the caches.

Rebuild cache toolbar button screenshot

Requirements

dependencies:
  - drupal:toolbar

Installation

Configuration

  • Configure the user permissions in Administration > People > Permissions:

    Rebuild Cache Access > Rebuild Cache

About

[MIRROR] Drupal 8 rebuild cache permission and toolbar button

Resources

Stars

Watchers

Forks

Packages

No packages published