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

Add never_cache Decorator to get_progress View #71

Merged
merged 1 commit into from
Dec 3, 2020
Merged

Add never_cache Decorator to get_progress View #71

merged 1 commit into from
Dec 3, 2020

Conversation

JoeSc
Copy link
Contributor

@JoeSc JoeSc commented Dec 2, 2020

When "django.middleware.cache.FetchFromCacheMiddleware" is included in MIDDLEWARE it ends up caching the get_progress view, which is not ideal since the idea for get_progress is to periodically provide updates to the client about task status. Adding the @never_cache decorator prevents django from caching this view.

Fixxes Issue #70

When "django.middleware.cache.FetchFromCacheMiddleware" is included in MIDDLEWARE it ends up caching the get_progress view, which is not ideal since the idea for get_progress is to periodically provide updates to the client about task status.  Adding the @never_cache decorator prevents django from caching this view.
Copy link
Owner

@czue czue 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!

@czue czue merged commit 84d37f9 into czue:master Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants