Skip to content

feat(connectors): stop event listeners when cache disabled#1364

Draft
bjoernsteinhagen wants to merge 8 commits into
devfrom
bjorn/cnx-3299-stop-event-listeners-when-cache-disabled
Draft

feat(connectors): stop event listeners when cache disabled#1364
bjoernsteinhagen wants to merge 8 commits into
devfrom
bjorn/cnx-3299-stop-event-listeners-when-cache-disabled

Conversation

@bjoernsteinhagen
Copy link
Copy Markdown
Contributor

To discuss:

  • With these changes, we will lose marking model cards as expired. Happy?

Changes:

  • Revit: When DisableCache=true, the DocumentChanged event isn't subscribed to at all — using the existing subscribe/unsubscribe pattern that was already there for DocumentChangeListeningDisabled
  • AutoCAD/Civil3D: The event still fires (can't unsubscribe from anonymous lambdas?), but the callback exits immediately before doing anything
  • Tekla: Same — exits immediately at the top of OnModelObjectChanged
  • Rhino: Has too many scattered event callbacks to guard individually, so RunExpirationChecks itself exits immediately and clears the accumulated IDs

From my understanding: when cache is disabled, no object IDs are accumulated, RunExpirationChecks never runs, EvictObjects is never called. The change tracking pipeline is a no-op.

Testing:

  • Revit
  • Rhino
  • Tekla
  • AutoCAD
  • Civil3D
  • Plant3D

@linear
Copy link
Copy Markdown

linear Bot commented Apr 13, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant