-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.x]: Control Panel not updated after database restore #11327
Comments
Just added a |
@brandonkelly Great solution for everybody. Thanks for the quick action |
@brandonkelly Uh... one question tho now that I think about it... How can we say |
@bencresty You can just start calling |
@brandonkelly thanks. I understand that in that case we can use the clear cache command after the restore db command. But isn't the restore database in that case still waiting for an anwer to the clear caches question? Or will there be an optional parameter to turn that question off or even pre-answer it? |
@bencresty It was just added as a convenience for when the command is being run interactively. If it’s not interactive, it’s not considered. |
Craft 3.7.44 and 4.0.4 are out now with that change. |
@brandonkelly allright, thanks |
What happened?
Description
When restoring a database with
php craft db/restore {dbfile}
the database gets restored alright, but the CMS is still showing entries that were removed in the restored database file and so should be gone. This was not caused by a browser cache.A Craft clear cache (not sure which, I used
php craft clear-caches/all
which did the job) was needed after the database restore call to update the CMS view. IMO the restore database command should automatically refresh the Control Panel/CMS after a db restore.Steps to reproduce
Notes:
Expected behavior
Control panel should always be in sync with the actual database.
Actual behavior
Control panel is not representing the actual database state after a db restore
Craft CMS version
3.7.43
PHP version
8.0.12
Operating system and version
Windows 10
Database type and version
MariaDb 10.4.21
Image driver and version
Installed plugins and versions
The text was updated successfully, but these errors were encountered: