Opened 5 years ago

Closed 5 years ago

#30654 closed New feature (invalid)

Optimize session cache backend KEY_PREFIX settings to support dynamic configuration.

Reported by: hfq-mengyangyang Owned by: nobody
Component: contrib.sessions Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Session cache backend KEY_PREFIX settings is static written in django.contrib.sessions.backends.cache module. Remove the KEY_PREFIX settings to django.conf.settings and support dynamic configuration.

Change History (1)

comment:1 by Mariusz Felisiak, 5 years ago

Resolution: invalid
Status: newclosed
Summary: Optimize session cache backend KEY_PREFIX settings to support dynamic configurationOptimize session cache backend KEY_PREFIX settings to support dynamic configuration.
Type: Cleanup/optimizationNew feature
Version: 2.2master

Thanks for this proposition, however SessionStore is extendable so you can easily change cache_key_prefix, e.g.

class CustomSessionStore(SessionStore):
    cache_key_prefix = 'my_custom_prefix'
Note: See TracTickets for help on using tickets.
Back to Top