Skip to content

Fixes some cache issues in v0.54#816

Merged
bennybp merged 4 commits into
mainfrom
fix_cache
Apr 11, 2024
Merged

Fixes some cache issues in v0.54#816
bennybp merged 4 commits into
mainfrom
fix_cache

Conversation

@bennybp
Copy link
Copy Markdown
Contributor

@bennybp bennybp commented Apr 10, 2024

Description

The idea of memory-backed caches that are shared between clients was a little half-baked. In general, that is not expected, and can cause issues with tests (see openforcefield/openff-qcsubmit#275). This makes that kind of shared cache opt-in.

Not that there is still some idea of sharing the cache withing a particular client due to multi-threading. But now, unless specified, constructing a new client will result in a separate cache.

Also fixes an issue where, if some records were in cache and some not, an exception was raised due to client mismatches between records.

Changelog description

Fixes issues related to shared caching. Shared in-memory caches are now opt-in

Status

  • Code base linted
  • Ready to go

@bennybp bennybp merged commit d81c496 into main Apr 11, 2024
@bennybp bennybp deleted the fix_cache branch April 11, 2024 19:19
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