I was wondering if there is a way to cache querysets to memcache on a site that has authenticated users and users that are not authenticated.
Basically I just need to cache queries from one table.
Any ideas would be great.
Thanks
I was wondering if there is a way to cache querysets to memcache on a site that has authenticated users and users that are not authenticated.
Basically I just need to cache queries from one table.
Any ideas would be great.
Thanks
Copyright © 2021 Jogjafile Inc.
Check out johnny-cache. This worked great for us until we did so much writing (updating records) that we were invalidating cache constantly. At that point we just started using memcache directly, like this.
If you're dealing with large querysets or objects, you might want to pickle them first.
Django's Caching Docs