-
cacheops watches Django make database queries, and caches the resultsets
-
When a record is created or updated, cacheops invalidates all the cached resultsets that might have included that record
cacheops operates on the Django ORM's QuerySet objects. When a QuerySet is executed, cacheops analyzes its where
structure to build and cache a simplified list of the fields that were filtered on. Then after it caches the resultset itself, it adds the resultset's cache key to a list of queries that used those filter fields with the same values.