1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #30772 -- Optimized make_template_fragment_key().

Removed usage of urllib.quote(), unnecessary since cbbe60c7fc.
Used hasher's .update() on key fragments.
This commit is contained in:
Daniel Fairhead
2019-09-11 22:12:35 +01:00
committed by Mariusz Felisiak
parent 6c9778a58e
commit 5cb3ed187b
3 changed files with 26 additions and 10 deletions

View File

@@ -208,7 +208,11 @@ backends.
Miscellaneous
-------------
* ...
* The cache keys used by :ttag:`cache` and generated by
:func:`~django.core.cache.utils.make_template_fragment_key` are different
from the keys generated by older versions of Django. After upgrading to
Django 3.1, the first request to any previously cached template fragment will
be a cache miss.
.. _deprecated-features-3.1: