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

Got rid of the header-replay-bundle #365

Merged
merged 3 commits into from Feb 22, 2019

Conversation

Toflar
Copy link
Member

@Toflar Toflar commented Feb 20, 2019

Well, here we are. It's been a nice ride dear header-replay-bundle. You've taught us a lot about caching but it's time to make Contao faster and easier to debug and understand.

Thank you for your service over the last two years.
Bye, bye 馃憢

$this->addSubscriber(new CleanupCacheTagsListener());
}

public function wasCacheCircumvented(): bool
Copy link
Member Author

@Toflar Toflar Feb 20, 2019

Choose a reason for hiding this comment

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

You might wonder why I did not mock the kernel and check if ->handle() was called or not. I did do this initially but it doesn't really work. I only want to check if our ContaoCache does what it's supposed to do. If a private request comes in ->kernel->handle() should not be called, thus you would set ->expects($this->never()) but that will actually not work because the request will flow through the HttpCache that has no cache entry eventually being forward()ed again to the the kernel so that expectation would fail 馃槃

@Toflar
Copy link
Member Author

Toflar commented Feb 21, 2019

The one failing test is unrelated and also happens in master.

@leofeyer leofeyer added this to the 4.8.0 milestone Feb 22, 2019
@leofeyer leofeyer merged commit 95e35ee into contao:master Feb 22, 2019
@leofeyer
Copy link
Member

Thank you @Toflar. And thank you for having created the header-replay-bundle in the first place 鈥撀爄t was a good solution for a problem that we could not have fixed at the time otherwise.

@Toflar Toflar deleted the feature/bye-bye-header-replay branch February 22, 2019 14:54
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

2 participants