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

cache_page directives needed to avoid caching cache report pages #2

Open
apippin opened this issue Apr 5, 2011 · 0 comments
Open

Comments

@apippin
Copy link

apippin commented Apr 5, 2011

With memcached enabled, the cache report page this app generates gets cached as well. By adding the appropriate cache_page directives in the urls.py file or the views.py file, this issue can be resolved. I added the following to the views.py file to fix this problem:

from django.views.decorators.cache import cache_page
...
@cache_page(0)
def server_list(request):
...
@cache_page(0)
def server_status(request, index):
...

You can also do something similar in the urls.py file. Without this fix, the status page shown by this app remains cached, and does not show any updates.

edavis pushed a commit to edavis/django-memcached that referenced this issue Nov 21, 2011
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

No branches or pull requests

1 participant