﻿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
392	django sets up memcache incorrectly when arguments are given	adrian@…	Jacob	"If your settings file is specifying a cache backend and giving arguments after the '?' you will see errors like this:

    MemCache: //127.0.0.1:9999: connect: Name or service not known.  Marking dead.

This is because the '//' is not trimmed correctly when there is a '?' in CACHE_BACKEND.  Here is a patch:

{{{
Index: django/core/cache.py
===================================================================
--- django/core/cache.py        (revision 544)
+++ django/core/cache.py        (working copy)
@@ -243,7 +243,7 @@
     qpos = rest.find('?')
     if qpos != -1:
         params = dict(parse_qsl(rest[qpos+1:]))
-        host = rest[:qpos]
+        host = rest[2:qpos]
     else:
         params = {}
     if host.endswith('/'):
}}}"	defect	closed	Core (Cache system)		normal	fixed			Unreviewed	0	0	0	0	0	0
