Article # same as invalidate_model ./invalidate articles # invalidate all models in articles Normally qs.update(...) doesn't emit any events and thus doesn't trigger invalidation.
And there is no transparent and efficient way to do that: trying to act on conditions will invalidate too much if update conditions are orthogonal to many queries conditions, and to act on specific objects we will need to fetch all of them, which Query Set.update() users generally try to avoid.
to make invalidation more granular, you can use a local function: and m2m changes.
Invalidation tries to be granular which means it won't invalidate a queryset that cannot be influenced by added/updated/deleted object judging by query conditions.
From My SQL's own docs:"Furthermore, Inno DB does not recognize or support “inline REFERENCES specifications” (as defined in the SQL standard) where the references are defined as part of the column specification.