#19221: Check that cache keys are string -------------------------------------+------------------------------------- Reporter: Mark Hughes | Owner: Dan | Stephenson Type: Bug | Status: assigned Component: Core (Cache system) | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Balazs Endresz): The `default_key_func` is still the old version in the docs, which fails with any non-string arguments: https://github.com/django/django/blob/stable/3.0.x/docs/ref/settings.txt#L171 Btw, not just the `key` but the `key_prefix` can be non-string too. What tripped me up was this in the test settings: `CACHES['default']['KEY_PREFIX'] = random()` when used with the `KEY_PREFIX` code snippet from the docs. -- Ticket URL: <https://code.djangoproject.com/ticket/19221#comment:16> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.b843676af0d5e24d73e7060e58460e15%40djangoproject.com.