cubicweb #342845 caching view stream : invalidation on entity/relation change [open]

on the "more performance" department, I note that we systematically recompute all views. Even if caching happens at various levels, we might want to cache the xhtml output of some of the most expensive.

Invalidation could be done on a declared set of entities and relations::

class FooPrimaryView(...):
   invalidate_on = ('FooEnt', 'bar_rel', 'baz_rel')

Defining a wrong invalidate_on set would be a programming error (unless it is possible to detect such a set automatically, but I'm unsure).

done in<not specified>
closed by<not specified>