Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: #8

Open
zsoldosp opened this issue Jun 27, 2017 · 1 comment

Comments

@zsoldosp
Copy link
Owner

e.g.: with py36-django111

tests/testapp/tests/test_autokeyed_cache.py::test_after_runtime_key_change_its_not_in_cache
  /var/www/gitlibs/django-admin-caching/.tox/py36-django111/lib/python3.6/site-packages/django/core/cache/backends/base.py:243: CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: ':1:testapp.admin.MyGroupAdmin-auth.Group-first key'
    'used with memcached: %r' % key, CacheKeyWarning
  /var/www/gitlibs/django-admin-caching/.tox/py36-django111/lib/python3.6/site-packages/django/core/cache/backends/base.py:243: CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: ':1:testapp.admin.MyGroupAdmin-auth.Group-second key'
    'used with memcached: %r' % key, CacheKeyWarning

tests/testapp/tests/test_autokeyed_cache.py::test_can_remove_itself_from_the_cache
  /var/www/gitlibs/django-admin-caching/.tox/py36-django111/lib/python3.6/site-packages/django/core/cache/backends/base.py:243: CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: ':1:other key'
    'used with memcached: %r' % key, CacheKeyWarning

-- Docs: http://doc.pytest.org/en/latest/warnings.html
@zsoldosp zsoldosp added the bug label Jun 27, 2017
@zsoldosp zsoldosp changed the title CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: ':1:testapp.admin.MyGroupAdmin-auth.Group-first key' CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: Jun 27, 2017
@Eorhim
Copy link
Contributor

Eorhim commented Apr 3, 2019

Reason for the warning: the space in some test keys. You could replace it with an _, but this will only hide the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants