#33604: Allow `CacheMiddleware.key_prefix` to be a callable
-------------------------------------+-------------------------------------
     Reporter:  Alexandru            |                    Owner:  nobody
  Mărășteanu                         |
         Type:  New feature          |                   Status:  new
    Component:  Core (Cache system)  |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 Thanks for the ticket. Dynamic prefixes are not supported, however you can
 use the [https://docs.djangoproject.com/en/stable/topics/cache/#cache-key-
 transformation KEY_FUNCTION] cache setting and changed `key_prefix`
 dynamically. I'm not convinced that we really need another option here.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33604#comment:1>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107017fd179ab7f-565c83d7-03a4-4a8b-8248-fda89ef5ea19-000000%40eu-central-1.amazonses.com.

Reply via email to