Skip to content

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