czue / celery-progress

Drop in, configurable, dependency-free progress bars for your Django/Celery applications.
MIT License
473 stars 90 forks source link

Add never_cache Decorator to get_progress View #71

Closed JoeSc closed 3 years ago

JoeSc commented 3 years ago

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