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.
dependencies:
- drupal:toolbar
- Install as you would normally install a contributed drupal module. See: https://drupal.org/documentation/install/modules-themes/modules-8 for further information.
- Configure the user permissions in Administration > People > Permissions:
Rebuild Cache Access > Rebuild Cache