Install
Works with Drupal: ^10.1 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
785.7 KB
MD5: c7ca52c22ad52b25b4f6c7b67123000a
SHA-1: 0987ca1f88504822e1ffbf05b65a31417c103a2d
SHA-256: 93a97572039309a2b1d49ef66e1da5b28ff6a3a01d2f4c68d8df7557634cc8aa
Download zip
798.06 KB
MD5: 51b471eff6e2389594a6e462d3b9c778
SHA-1: 9ba303739564f3bd94353f794089117463eb30c5
SHA-256: f3ade620ef8a29849e4c94a36a14b18ca53f1ade9967417cb31776a522ef7189
Release notes
Adds Drupal 12 compatibility, restricts the "Rebuild Cache" permission, and returns users to the page they were on after a rebuild, even with Referrer-Policy: no-referrer.
Changes
- #3602374: The permissions page now shows core's "Give to trusted roles only" warning next to "Rebuild Cache". Existing role assignments are unchanged.
- #3540172: The toolbar and Navigation links pass the current page as
destination, soReferrer-Policy: no-referrerno longer sends users to the front page. The links are rendered in placeholders, so the toolbar is still cached once per permission set. - #3588305: Drupal 12 compatibility.
- #3602373: New documentation site, built with MkDocs on GitLab Pages.
Upgrade notes
- Clear caches after updating. This release adds a new service.
drush updbanddrush deployclear caches automatically. - Custom links to
/rebuild-cache-access/rebuild-cachekeep working and still return via the HTTP referer. To make them work withno-referreras well, add a destination:Url::fromRoute('rebuild_cache_access.rebuild_cache', [], ['query' => \Drupal::destination()->getAsArray()]). hook_toolbar_alter():$items['rebuild_cache_access']['tab']now holds a lazy-builder placeholder instead of the link, so changes to['tab']['#title']or['tab']['#url']no longer have any effect. Override therebuild_cache_access.link_lazy_builderservice instead.RebuildCacheAccessNavigationBlock::buildRebuildCache()is deprecated and will be removed in 2.0.0. Use therebuild_cache_access.link_lazy_builderservice instead.
Contributors
vipul tulse, a.dmitriiev, norman.lol