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

Remove unnecessary redirect transient update #225

Merged
merged 1 commit into from
May 4, 2023

Conversation

arunshenoy99
Copy link
Member

@arunshenoy99 arunshenoy99 commented May 1, 2023

The redirect transient was updating on every page load even after the fix we did in 1.4.0 because the enable_redirect code that we removed when improving the efficiency of ModuleController solved the transient update issue only when a site met the onboarding criteria.

This PR removes the unnecessary disable_redirect call that runs whenever a site does not meet the criteria for Onboarding, in this case the module disables itself, preventing a login redirect, and we do not need to manually set a transient (this is the edge case we need to test whenever performing QA).

@arunshenoy99 arunshenoy99 linked an issue May 1, 2023 that may be closed by this pull request
@officiallygod officiallygod added the Code Review The PR is in Code Review label May 2, 2023
Copy link
Contributor

@abhijitb abhijitb left a comment

Choose a reason for hiding this comment

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

LGTM!

@abhijitb abhijitb added Ready to merge The Code Review and QA is done and it can be merged. and removed Code Review The PR is in Code Review labels May 2, 2023
@arunshenoy99 arunshenoy99 merged commit 2b45dc0 into trunk May 4, 2023
@arunshenoy99 arunshenoy99 deleted the fix/transient-update-query-on-all-page-loads branch May 4, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge The Code Review and QA is done and it can be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MySQL update query run on all front-end page loads
3 participants