﻿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
32841	Decorator cache_page don't use CACHE_MIDDLEWARE_KEY_PREFIX properly	Iuri de Silvio	Iuri de Silvio	"The `cache_page` decorator don't use the setting because it always pass `key_prefix=None` and `CacheMiddleware` consider it a valid config, so it overrides the default one.

https://github.com/django/django/blob/854e9b066850b9b4eb1171966e996322b2c16d27/django/views/decorators/cache.py#L24
https://github.com/django/django/blob/ca9872905559026af82000e46cde6f7dedc897b6/django/middleware/cache.py#L175

I discovered the issue because I was moving from Django 3.1 to Django 3.2 and a 3.1 `HttpResponse` is not compatible with 3.2 `HttpResponse` (which I think is ok, maybe could be better documented), so I have to clean the cache changing my key prefix with the `CACHE_MIDDLEWARE_KEY_PREFIX`."	Bug	closed	Core (Cache system)	3.2	Normal	invalid			Unreviewed	1	0	0	0	0	0
