{"action":"created","issue":{"url":"https://api.github.com/repos/BertrandBordage/django-cachalot/issues/46","repository_url":"https://api.github.com/repos/BertrandBordage/django-cachalot","labels_url":"https://api.github.com/repos/BertrandBordage/django-cachalot/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/BertrandBordage/django-cachalot/issues/46/comments","events_url":"https://api.github.com/repos/BertrandBordage/django-cachalot/issues/46/events","html_url":"https://github.com/BertrandBordage/django-cachalot/issues/46","id":133274983,"number":46,"title":"Cache invalidation problems with asynchronous tasks","user":{"login":"rahulmuraliqllabscom","id":13839559,"avatar_url":"https://avatars.githubusercontent.com/u/13839559?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulmuraliqllabscom","html_url":"https://github.com/rahulmuraliqllabscom","followers_url":"https://api.github.com/users/rahulmuraliqllabscom/followers","following_url":"https://api.github.com/users/rahulmuraliqllabscom/following{/other_user}","gists_url":"https://api.github.com/users/rahulmuraliqllabscom/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulmuraliqllabscom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulmuraliqllabscom/subscriptions","organizations_url":"https://api.github.com/users/rahulmuraliqllabscom/orgs","repos_url":"https://api.github.com/users/rahulmuraliqllabscom/repos","events_url":"https://api.github.com/users/rahulmuraliqllabscom/events{/privacy}","received_events_url":"https://api.github.com/users/rahulmuraliqllabscom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-12T15:53:32Z","updated_at":"2016-02-16T16:22:21Z","closed_at":null,"body":"I am using celery with django for some asynchronous tasks but now I find that  when table row is updates by a  celery worker process  cachalot is not invalidating the cache"},"comment":{"url":"https://api.github.com/repos/BertrandBordage/django-cachalot/issues/comments/184752837","html_url":"https://github.com/BertrandBordage/django-cachalot/issues/46#issuecomment-184752837","issue_url":"https://api.github.com/repos/BertrandBordage/django-cachalot/issues/46","id":184752837,"user":{"login":"JockeTF","id":532268,"avatar_url":"https://avatars.githubusercontent.com/u/532268?v=3","gravatar_id":"","url":"https://api.github.com/users/JockeTF","html_url":"https://github.com/JockeTF","followers_url":"https://api.github.com/users/JockeTF/followers","following_url":"https://api.github.com/users/JockeTF/following{/other_user}","gists_url":"https://api.github.com/users/JockeTF/gists{/gist_id}","starred_url":"https://api.github.com/users/JockeTF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JockeTF/subscriptions","organizations_url":"https://api.github.com/users/JockeTF/orgs","repos_url":"https://api.github.com/users/JockeTF/repos","events_url":"https://api.github.com/users/JockeTF/events{/privacy}","received_events_url":"https://api.github.com/users/JockeTF/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T16:22:21Z","updated_at":"2016-02-16T16:22:21Z","body":"We have also been seeing some invalidation issues recently, which @devoto13 suggested may have something to do with [PYTHONHASHSEED](https://docs.python.org/3.4/using/cmdline.html#envvar-PYTHONHASHSEED).\r\n\r\nWe had `PYTHONHASHSEED` set to `random`as recommended by [Django's Deployment Checklist](https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/#python-options). This could lead to issues since Cachalot [now uses the built-in hash function](beac70251f509a48d80e2c03add98b42974f74d4) instead of SHA-1. Django and Celery would get different hash seed values, so their cache keys may no longer match.\r\n\r\nI'm currently testing out static `PYTHONHASHSEED` values in our development environment to see if this solves the issue."}}