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

MemcachedCache is not working as django MEMCACHED_BACKEND #12106

Closed
mattiagiupponi opened this issue Mar 29, 2024 · 1 comment · Fixed by #12132
Closed

MemcachedCache is not working as django MEMCACHED_BACKEND #12106

mattiagiupponi opened this issue Mar 29, 2024 · 1 comment · Fixed by #12132
Assignees
Milestone

Comments

@mattiagiupponi
Copy link
Contributor

Expected Behavior

If i set MEMCACHED_ENABLED=True and MEMCACHED_BACKEND=django.core.cache.backends.memcached.MemcachedCache the cache should work

Actual Behavior

Django raise an error:

Could not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module "django.core.cache.backends.memcached" does not define a "MemcachedCache" attribute/class

From Django 4.1, MemcachedCache support has been dropped, see releases notes .

We should change the cache system and use PyLibMCCache for example

Steps to Reproduce the Problem

  1. on master set set MEMCACHED_ENABLED=True
  2. Run django

Specifications

  • GeoNode version: master ONLY
  • Installation type (vanilla, geonode-project): master ONLY
  • Installation method (manual, docker): docker / manual
  • Platform:
  • Additional details: only master is affected since is the only branch that uses Django 4.2
@mattiagiupponi mattiagiupponi added this to the 4.3.0 milestone Mar 29, 2024
@mattiagiupponi mattiagiupponi self-assigned this Mar 29, 2024
@giohappy
Copy link
Contributor

giohappy commented Apr 4, 2024

Keep in mind that at the moment the usage of a real Django cache is not very well tested. There were problems reported with the REST API.
The only real cache backed by Memcached that we're actively using is the one for the transaction locks., and it uses pylibmc

@giohappy giohappy linked a pull request Apr 4, 2024 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants