+
Skip to content

Decouple metadata condition cache lifetime from reading metadata #140

@Ortham

Description

@Ortham

Calling Database::general_messages() clears the condition cache, but there's no intrinsic reason for it to do so - it just so happens that LOOT only reads the loaded general messages after some external state change that should cause that cache to be invalidated.

It would be more flexible for Database::general_messages() to not clear the cache and instead provide another Database method that only invalidates the condition cache. There's already a private Database::clear_condition_cache() method that does that, it just needs to be made public and then exposed through the C++ wrapper.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载