[Answered ]-Redis for Django-application

2👍

I’m using cacheops for caching in all my django apps.

It gives build in query caching and invalidation on model updates.

All you need to add caching for all User related queries is to add to your settings.py few lines:

CACHEOPS = {
    'auth.user': {'ops': 'get', 'timeout': 60*15},
}

I assume you can add session caching in the same way.

If you doesn’t expect highload on your project I’m sure it’ll be enough.

👤Alex T

Leave a comment