[IMP] Refactor ir.ui.view's read_template cache invalidation