﻿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
10016	Cache middleware with memcached can't handle long URLs	Jacob	mcroydon	"Memcached has a hard limit of 250 characters for cache keys ([http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt cite]). However, cache keys for the cache middleware (and associated view decorators) are of the form

{{{
   'views.decorators.cache.cache_page.%s.%s.%s' % (key_prefix, request.path, headers_hash)
}}}

([http://code.djangoproject.com/browser/django/trunk/django/utils/cache.py#L146 cite])

This means that if the combined length of {{{settings.CACHE_MIDDLEWARE_KEY_PREFIX}}} and {{{request.path}}} is over about 180 characters, you'll get failures. With cmemcache you get obscure server errors; the pure-Python memcached client throws {{{MemcachedKeyLengthError}}}.
"		closed	Core (Cache system)	dev		fixed			Accepted	1	0	0	0	0	0
