Skip to content

Conversation

@federicobond
Copy link
Contributor

Description

This changes the values of the backend columns for cache calls in the Cache panel from <django.core.cache.backends.dummy.DummyCache object at 0x1063950a0> to default or the corresponding alias. This makes it much easier to identify which call is made to which backend when several cache backends share the same engine.

Before:

Captura de pantalla 2025-10-08 a la(s) 9 48 20

After:

Captura de pantalla 2025-10-08 a la(s) 9 49 26

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

@federicobond federicobond changed the title Show cache alias instead of backend repr Show cache alias instead of backend repr in calls table Oct 8, 2025
@tim-schilling
Copy link
Member

@federicobond I spotted a few more clean-ups, but this is on the edge of being good to go. Thank you for being patient!

@tim-schilling
Copy link
Member

@federicobond I removed the _djdt_patched attribute since it was causing confusion in the tests of when the cache integration had been patched or not. I also added in a suffix of (BackendClassName) to the rendered text. I figure some people would benefit from knowing what backend class is being used. If the tests pass, I'm happy to merge this.

@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  debug_toolbar/panels
  cache.py 98
Project Total  

This report was generated by python-coverage-comment-action

@tim-schilling tim-schilling merged commit 9c2d243 into django-commons:main Nov 14, 2025
31 checks passed
@tim-schilling
Copy link
Member

Squashed the commits and merged. Thank you @federicobond!

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