Status message does not appear after running /core/rebuild.php

Created on 22 December 2020, over 3 years ago
Updated 20 March 2023, over 1 year ago

Problem/Motivation

As per the docs running Rebuild.php script can clear Drupal cache even when Drupal itself does not work. On running it from browser It does clears the cache but as written in the code \Drupal::messenger()->addStatus('Cache rebuild complete.'); of the script it doesn't shows the status message "Cache rebuild complete."

Steps to reproduce

  1. Add $settings['rebuild_access'] = TRUE; in your settings.php file.
  2. Browse the url /core/rebuild.php
  3. It redirects to home page after clearing the cache but doesnโ€™t shows any status message.

Proposed resolution

Either remove the message or handle the redirection with different ways.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

None

๐Ÿ› Bug report
Status

Closed: duplicate

Version

10.1 โœจ

Component
Otherย  โ†’

Last updated about 15 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia saxenaakansha30 New Delhi, India

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.

Production build 0.69.0 2024