8000 Add cache view to example app by federicobond · Pull Request #2243 · django-commons/django-debug-toolbar · GitHub
Skip to content

Add cache view to example app - #2243

Merged
tim-schilling merged 2 commits into
django-commons:mainfrom
federicobond:cache-example
Nov 10, 2025
Merged

Add cache view to example app#2243
tim-schilling merged 2 commits into
django-commons:mainfrom
federicobond:cache-example

Conversation

@federicobond

Copy link
Copy Markdown
Member

I added a cache view to the example app to more easily check the display of cache data in the debug toolbar.

Comment thread example/views.py


def cache_view(request):
cache.set("foo", "bar")

@tim-schilling tim-schilling Nov 10, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TIL that Django sets a default timeout of 5m.

@tim-schilling
tim-schilling merged commit 7d9e7b8 into django-commons:main Nov 10, 2025
29 checks passed
federicobond added a commit to federicobond/django-debug-toolbar that referenced this pull request Nov 26, 2025
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