mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26460 -- Issued a single warning for invalid cache key
This commit is contained in:
committed by
Simon Charette
parent
15a20dc9af
commit
d356bb653f
1
django/core/cache/backends/base.py
vendored
1
django/core/cache/backends/base.py
vendored
@@ -242,6 +242,7 @@ class BaseCache(object):
|
||||
warnings.warn('Cache key contains characters that will cause '
|
||||
'errors if used with memcached: %r' % key,
|
||||
CacheKeyWarning)
|
||||
break
|
||||
|
||||
def incr_version(self, key, delta=1, version=None):
|
||||
"""Adds delta to the cache version for the supplied key. Returns the
|
||||
|
||||
Reference in New Issue
Block a user