This project is not covered by Drupal’s security advisory policy.
Node Access Rebuild Guard will stop a node access rebuild from leaving listings cached empty. During a rebuild Drupal deletes and rewrites the access grants; a listing rendered in the meantime can come out empty and stay cached that way until a full cache clear, which looks like lost content.
Status: No release yet. The module is under active development; the first beta follows once its automated test suite and an independent review pass.
This module is developed with AI assistance. The maintainer reviews and tests every release before publishing it.
Planned for 1.0
None of this is released yet. The first release will:
- While a rebuild is in progress, make responses and renders that depend on node access uncacheable, including for the anonymous page cache, through its kill switch.
- When the rebuild ends, whether it succeeds or fails, invalidate the affected list cache tags and Views.
- Cover both kinds of rebuild, batch and non-batch.
- Show the rebuild state, and whether anything was protected, on the status report and through a Drush command.
Its tests will first reproduce the problem without the module (a cached empty listing that survives the end of the rebuild) and then show that the module prevents it, for both kinds of rebuild.
Requirements
Planned for the first release:
- Drupal 11.4 or later, or Drupal 12.
- PHP 8.3 or later.
- Core's Node module. The problem arises on sites that use a node access module, such as Group, Domain Access or Content Access.
Installation
Installation instructions arrive with the first release. For the first beta, the commands will be:
composer require 'drupal/node_access_rebuild_guard:^1.0@beta' drush en node_access_rebuild_guard
Configuration and permissions
Not final yet. This section will list each settings page and each permission, by its real label, with the first release.
Similar projects
Checked on drupal.org in November 2026.
- Node Access Rebuild Progressive rebuilds node access in chunks over cron instead of all at once. Choose it when a rebuild is too large to run in one go. It addresses a different problem; its issue queue has an open task, marked Needs work, to invalidate cache tags after a rebuild.
- We found no core issue or contributed module that fixes empty listings cached during a rebuild.
Support and maintenance
Report bugs, ask for features and comment on the planned scope in the issue queue. Each release will have notes describing what changed.
This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.
A read-only mirror is on GitHub at DanePete/drupal-node-access-rebuild-guard. It will mirror the drupal.org repository once code is published there; development and issues stay on drupal.org.
Maintainer
Created and maintained by deadnorth (Dead North).
Project information
- Project categories: Access control, Performance
- Created by deadnorth on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
