Skip to content

DM-56987: Do not leak PP middleware per visit - #392

Open
dormando wants to merge 1 commit into
mainfrom
tickets/DM-56987
Open

dormando wants to merge 1 commit into
mainfrom
tickets/DM-56987

Conversation

@dormando

@dormando dormando commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

functools.cache class cache was being used with (self, pipeline_file) which held a reference to every MWI object created during runtime. This also leaked a temporary file holding each visit raw.

This swaps with per-instance instance cache in both cases.

functools.cache class cache was being used with `(self, pipeline_file)`
which held a reference to every MWI object created during runtime. This
also leaked a temporary file holding each visit raw.

This swaps with per-instance instance cache in both cases.

@hsinfang hsinfang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for finding and fixing it.

@dormando

dormando commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! I'll run it through dev before merging.

This branch has not been deployed

No deployments
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.

2 participants