Opened 6 years ago
Closed 6 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 , 6 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
| Summary: | Optimize session cache backend KEY_PREFIX settings to support dynamic configuration → Optimize session cache backend KEY_PREFIX settings to support dynamic configuration. |
| Type: | Cleanup/optimization → New feature |
| Version: | 2.2 → master |
Note:
See TracTickets
for help on using tickets.
Thanks for this proposition, however
SessionStoreis extendable so you can easily changecache_key_prefix, e.g.class CustomSessionStore(SessionStore): cache_key_prefix = 'my_custom_prefix'