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

added:add multiple cache backend support #31

Merged
merged 1 commit into from
Oct 31, 2016
Merged

Conversation

nbsky
Copy link

@nbsky nbsky commented Oct 25, 2016

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
        'LOCATION': '/var/tmp/django_cache',
        'TIMEOUT': 60,
        'OPTIONS': {
            'MAX_ENTRIES': 1000
        }
    },
    'default2': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
        'LOCATION': 'unique-snowflake',
    }

}

cache_page(60, cache=default2)

fixed:default2 failed to work properly

@peterbe
Copy link
Owner

peterbe commented Oct 26, 2016

Have you tested it in a project? Does it work awesomely now?

@peterbe peterbe self-assigned this Oct 26, 2016
@nbsky
Copy link
Author

nbsky commented Oct 31, 2016

yes , i added a unit test now.

@peterbe peterbe merged commit 9f2a91c into peterbe:master Oct 31, 2016
@peterbe
Copy link
Owner

peterbe commented Oct 31, 2016

I can make a release if you want.

@peterbe
Copy link
Owner

peterbe commented Oct 31, 2016

@nbsky
Copy link
Author

nbsky commented Nov 1, 2016

aha thankyou!

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