﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33604	Allow CacheMiddleware.key_prefix to be a callable.	Alexandru Mărășteanu	Stefan Farmbauer	"As discussed in https://groups.google.com/g/django-developers/c/UbD1DkV1uPo and https://code.djangoproject.com/ticket/11269 it would be useful to be able to specify a callable which would allow for more dynamic caching. In my case, I need to cache differently depending on whether the user is authenticated or not. Another scenario is to cache certain pages depending on some timestamp. Other uses cases were mentioned in the linked pages.

There exists https://github.com/peterbe/django-fancy-cache but I was able to address this by extending the built-in middleware so I really don't see an argument for a 3rd party package.

(PR is 18254)[https://github.com/django/django/pull/18254]"	New feature	assigned	Core (Cache system)	dev	Normal			Tobias Kunze	Accepted	1	1	1	1	0	0
