Skip to content
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

Reinit fresh config before flushing cache and immediately save config… #3533

Merged
merged 9 commits into from
Oct 3, 2023

Conversation

colinmollenhour
Copy link
Member

When the cache is flushed the next processes will have to rebuild the config data and save it to the cache. This could even occur before the flush is complete. This patch reduces the opportunity for race conditions and cache corruption by immediately saving the config cache after the flush completes.

… cache after to reduce stampeding and corruption.
@github-actions github-actions bot added Component: Core Relates to Mage_Core Component: Adminhtml Relates to Mage_Adminhtml labels Sep 20, 2023
@github-actions github-actions bot added the translations Relates to app/locale label Sep 21, 2023
Copy link
Contributor

@kiatng kiatng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with an upgrade script with and without throwing an exception.

@fballiano fballiano merged commit fc15c93 into OpenMage:main Oct 3, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Core Relates to Mage_Core translations Relates to app/locale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants