diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index 6cca2f8c7c..e45249874d 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -128,6 +128,7 @@ class BaseMemcachedCache(BaseCache): class CacheClass(BaseMemcachedCache): def __init__(self, server, params): + import warnings warnings.warn( "memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.", PendingDeprecationWarning