Memcached – Does django hits the database when you request for an object's attribute from a cached query?
I'm having trouble to understand how to properly use the Caches Framework. lets say I have this code: class Book(models.Model): title = models.CharField() author = models.ForeignKey(User) @classmethod: def get_all_books(cls): query = cache.get_or_set( 'all_books', cls.objects.all() ) return query now I know…