summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorijl <uijllji@gmail.com>2013-12-26 23:14:08 -0500
committerTim Graham <timograham@gmail.com>2013-12-28 11:20:18 -0500
commit71a03e01aa19cbde08e915d156abf39b67d904ef (patch)
tree3de922c8a4f4214606323d841e75e27aadccdb33 /docs/releases
parent280c1a65ccacd679bf298bf2b169ff01e7266b8e (diff)
Fixed #20346 -- Made cache middleware vary on the full URL.
Previously, only the URL path was included in the cache key. Thanks jamey for the suggestion.
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/1.7.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index 2c3e3f217d..dbbdcf9c81 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -622,6 +622,19 @@ cache-specific errors. This has been fixed in Django 1.7, see
.. _Ticket #21200: https://code.djangoproject.com/ticket/21200
+Cache keys are now generated from the request's absolute URL
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Previous versions of Django generated cache keys using a request's path and
+query string but not the scheme or host. If a Django application was serving
+multiple subdomains or domains, cache keys could collide. In Django 1.7, cache
+keys vary by the absolute URL of the request including scheme, host, path, and
+query string. For example, the URL portion of a cache key is now generated from
+``http://www.example.com/path/to/?key=val`` rather than ``/path/to/?key=val``.
+The cache keys generated by Django 1.7 will be different from the keys
+generated by older versions of Django. After upgrading to Django 1.7, the first
+request to any previously cached URL will be a cache miss .
+
Passing ``None`` to ``Manager.db_manager()``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~