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

Render new page when there is a flash message #1525

Merged
merged 1 commit into from
Apr 26, 2019
Merged

Render new page when there is a flash message #1525

merged 1 commit into from
Apr 26, 2019

Conversation

jedrekdomanski
Copy link
Contributor

@jedrekdomanski jedrekdomanski commented Dec 18, 2018

  • render new page only when there is a flash message, otherwise render
    old page
  • needed when you have flash messages in place

What is this pull request for?

When you have flash messages in place this is needed so that flash messages do not get cached and re-rendered when from cache, otherwise the flash message keeps displaying even though there was no flash message in a new request.

@jedrekdomanski
Copy link
Contributor Author

@afdev82 Hi, as discussed earlier, this is the PR that fixes the flash messages. Do you have anything to add to it?

@afdev82
Copy link
Contributor

afdev82 commented Dec 19, 2018

Fine for me 👍

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. I am fine with the addition, but am missing a test for the feature.

Never render a cached version of a page if there is a flash message.
@tvdeyen tvdeyen self-requested a review April 25, 2019 21:08
@tvdeyen tvdeyen added this to the 4.2 milestone Apr 25, 2019
@tvdeyen tvdeyen self-assigned this Apr 25, 2019
@tvdeyen tvdeyen merged commit 218fad2 into AlchemyCMS:master Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants