Skip to content

cache_page directives needed to avoid caching cache report pages #2

Description

@apippin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions