{"action":"created","issue":{"url":"https://api.github.com/repos/Suor/django-cacheops/issues/205","repository_url":"https://api.github.com/repos/Suor/django-cacheops","labels_url":"https://api.github.com/repos/Suor/django-cacheops/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/Suor/django-cacheops/issues/205/comments","events_url":"https://api.github.com/repos/Suor/django-cacheops/issues/205/events","html_url":"https://github.com/Suor/django-cacheops/issues/205","id":172436158,"number":205,"title":"Cache does not seem to be working","user":{"login":"tawanda","id":7323136,"avatar_url":"https://avatars.githubusercontent.com/u/7323136?v=3","gravatar_id":"","url":"https://api.github.com/users/tawanda","html_url":"https://github.com/tawanda","followers_url":"https://api.github.com/users/tawanda/followers","following_url":"https://api.github.com/users/tawanda/following{/other_user}","gists_url":"https://api.github.com/users/tawanda/gists{/gist_id}","starred_url":"https://api.github.com/users/tawanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tawanda/subscriptions","organizations_url":"https://api.github.com/users/tawanda/orgs","repos_url":"https://api.github.com/users/tawanda/repos","events_url":"https://api.github.com/users/tawanda/events{/privacy}","received_events_url":"https://api.github.com/users/tawanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T12:05:04Z","updated_at":"2016-08-22T12:09:05Z","closed_at":null,"body":"Hello, i am monitoring my local redis and nothing seems to be getting cached\r\n\r\ni am running django rest framework and i have a simple endpoint that lists all image files no matter how many times i hit the endpoint nothing is cached\r\n\r\nhere are my settings\r\n\r\nmy image models are in `apps.imagefiles.models`\r\n\r\n```\r\n# ############ CACHE SETTNGS\r\nCACHES = {\r\n    \"default\": {\r\n        \"BACKEND\": \"django_redis.cache.RedisCache\",\r\n        \"LOCATION\": \"redis://127.0.0.1:6379/5\",\r\n        \"OPTIONS\": {\r\n            \"CLIENT_CLASS\": \"django_redis.client.DefaultClient\",\r\n        }\r\n    }\r\n}\r\n\r\n\r\n# ######## END CACHE SETTINGS ##########\r\n\r\n\r\n# ####### CACHEOPS #####################\r\n\r\nCACHEOPS_ENABLED=True\r\n\r\nCACHEOPS_REDIS = \"redis://127.0.0.1:6379/6\"\r\n\r\nCACHEOPS = {\r\n    # Automatically cache any User.objects.get() calls for 30 minutes\r\n    # This includes request.user or post.author access,\r\n    # where Post.author is a foreign key to auth.User\r\n    'apps.accounts.accounts.user': {'ops': 'get', 'timeout': 60*35},\r\n\r\n    # Automatically cache all gets and queryset fetches\r\n    # to other accounts models for an hour\r\n    'apps.accounts.accounts.*': {'ops': ('fetch', 'get'), 'timeout': 60*60},\r\n\r\n    # Cache gets, fetches, counts and exists to all the following apps\r\n    # 'all' is just an alias for ('get', 'fetch', 'count', 'exists')\r\n   \r\n    'apps.imagefiles.*': {'ops': 'all', 'timeout': 60*60},\r\n   \r\n\r\n    # Enable manual caching on all other models with default timeout of an hour\r\n    # Use Post.objects.cache().get(...)\r\n    #  or Tags.objects.filter(...).order_by(...).cache()\r\n    # to cache particular ORM request.\r\n    # Invalidation is still automatic\r\n    '*.*': {'ops': (), 'timeout': 60*60},\r\n}\r\n# ####### CACHEOPS #########\r\n```\r\n\r\nThanks for the assist"},"comment":{"url":"https://api.github.com/repos/Suor/django-cacheops/issues/comments/241393601","html_url":"https://github.com/Suor/django-cacheops/issues/205#issuecomment-241393601","issue_url":"https://api.github.com/repos/Suor/django-cacheops/issues/205","id":241393601,"user":{"login":"Suor","id":284103,"avatar_url":"https://avatars.githubusercontent.com/u/284103?v=3","gravatar_id":"","url":"https://api.github.com/users/Suor","html_url":"https://github.com/Suor","followers_url":"https://api.github.com/users/Suor/followers","following_url":"https://api.github.com/users/Suor/following{/other_user}","gists_url":"https://api.github.com/users/Suor/gists{/gist_id}","starred_url":"https://api.github.com/users/Suor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suor/subscriptions","organizations_url":"https://api.github.com/users/Suor/orgs","repos_url":"https://api.github.com/users/Suor/repos","events_url":"https://api.github.com/users/Suor/events{/privacy}","received_events_url":"https://api.github.com/users/Suor/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T12:09:05Z","updated_at":"2016-08-22T12:09:05Z","body":"You should not use full app paths in CACHEOPS setting, just\n\"appname.modelname\".\n"}}
{"actor":{"display_login":"Suor"}}