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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy call router when replacing old backend paths #4091

Merged
merged 6 commits into from Mar 2, 2022

Conversation

aschempp
Copy link
Member

@aschempp aschempp commented Feb 9, 2022

In #3995 we noticed the router was called for every old backend path even if it did not exist in the replaced URL. See https://github.com/contao/contao/pull/3995/files#r795530334 for the discussion.

This PR changes the behaviour to use the callback only when necessary, happily covered with some unit tests 馃槑

@aschempp aschempp added the bug label Feb 9, 2022
@aschempp aschempp added this to the 4.9 milestone Feb 9, 2022
@aschempp aschempp requested review from ausi and a team February 9, 2022 08:03
@aschempp aschempp self-assigned this Feb 9, 2022
@aschempp aschempp mentioned this pull request Feb 9, 2022
1 task
Toflar
Toflar previously approved these changes Feb 9, 2022
ausi
ausi previously approved these changes Feb 9, 2022
Copy link
Member

@ausi ausi left a comment

Choose a reason for hiding this comment

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

鉂わ笍

@aschempp aschempp dismissed stale reviews from ausi and Toflar via e3ee58d February 14, 2022 12:40
@leofeyer leofeyer merged commit 6ff89e8 into contao:4.9 Mar 2, 2022
@aschempp aschempp deleted the bugfix/be-path-performance branch March 3, 2022 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants