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

fix: Disable caching for respond_as_web_page response #8276

Merged

Conversation

surajshetty3416
Copy link
Member

@surajshetty3416 surajshetty3416 commented Aug 27, 2019

Workflow confirmation page always used to show old cached document approval page if multiple links are clicked simultaneously for approval.

Solution: Disable caching for respond_as_web_page response

@@ -1190,6 +1193,7 @@ def respond_as_web_page(title, html, success=None, http_status_code=None,
context['primary_action'] = primary_action
context['error_code'] = http_status_code
context['fullpage'] = fullpage
context['no_cache'] = no_cache
Copy link
Contributor

Choose a reason for hiding this comment

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

respond_as_web_page should always be uncached

@surajshetty3416 surajshetty3416 changed the title fix: Do not cache workflow approval confirmation page fix: Disable caching for respond_as_web_page response Aug 27, 2019
@netchampfaris netchampfaris merged commit 84c3eb3 into frappe:develop Aug 27, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants