Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: invalidate cache if database file changes #61

Open
sbromberger opened this issue Nov 29, 2023 · 1 comment
Open

feature request: invalidate cache if database file changes #61

sbromberger opened this issue Nov 29, 2023 · 1 comment

Comments

@sbromberger
Copy link

Thank you very much for this utility - it's made a huge difference in my workflow.

I have a favor to ask: I love the caching feature but it's tripped me up a few times when I make changes to the database from another device. Would it be possible to have ph detect that the database has changed and then invalidate the cache? I understand that this would require reauthentication but it would ensure that we're getting the latest data.

@sbromberger sbromberger changed the title feature request: automatic restart if database file changes feature request: invalidate cache if database file changes Nov 29, 2023
@Evidlo
Copy link
Owner

Evidlo commented Dec 1, 2023

That should already be handled here: https://github.com/libkeepass/pykeepass_cache/blob/master/pykeepass_cache/pykeepass_cache.py#L41-L42

I just tested it though and I'm seeing the same behavior as you're seeing.

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

No branches or pull requests

2 participants