Skip to content

fix infinite caching for pre-Django 1.6; leave cache methods as-is for Django 1.6 and later #104

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

Merged
merged 1 commit into from
Oct 17, 2015

Conversation

tobiasmcnulty
Copy link
Member

The documentation states that you can pass FOREVER to achieve infinite caching, however, this isn't true as the attached test demonstrates. Overriding _get_memcache_timeout to make sure 0 gets through to memcached fixes the issue.

tobiasmcnulty added a commit that referenced this pull request Oct 17, 2015
fix infinite caching for pre-Django 1.6; leave cache methods as-is for Django 1.6 and later
@tobiasmcnulty tobiasmcnulty merged commit 95a7de5 into master Oct 17, 2015
@tobiasmcnulty tobiasmcnulty deleted the fix-infinite-timeout branch October 17, 2015 16:16
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.

1 participant