Skip to content

changed caching behavior#829

Open
markusmo wants to merge 3 commits into
awesto:masterfrom
markusmo:fixes/caching-for-redis-import
Open

changed caching behavior#829
markusmo wants to merge 3 commits into
awesto:masterfrom
markusmo:fixes/caching-for-redis-import

Conversation

@markusmo

Copy link
Copy Markdown

I just setup my shop together with django-redis-cache package and I got an error, when changing a model, when it wanted to invalidate mny
So I adapted the code in product.py to use Django caching API's delete(key).

See: https://docs.djangoproject.com/en/3.0/topics/cache/#django.core.caches.cache.delete

@jrief

jrief commented Sep 20, 2020

Copy link
Copy Markdown
Member

OK. This looks like an API change in the redis-cache library. Can we restrict the versions which are compatible with those changes.

@markusmo

Copy link
Copy Markdown
Author

Well redis-cache did not work with the current new version, so I had to upgrade. Using the standard django caching will result in redis-cache to be triggerd or any other cache that will be used. So this would be an agnostic aproach

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants