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

fix(epub, word): Update the documents cache whenever the file is modified #289

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

pauliyobo
Copy link
Collaborator

Link to issue number:

fixes #288

Summary of the issue:

Certain document formats, as of now only word and epub, cache their HTML representation to be loaded in subsequent reads. However, the cache was not properly updated whenever the document itself would change

Description of how this pull request fixes the issue:

We now also keep track of the document's modified time, and update the cache accordingly if the document appears to be modified.
The check we do is probably very naive, but the use case is simplistic enough that it shouldn't matter.

Testing performed:

Unit tests were added

Known issues with pull request:

None that I could see

@pauliyobo pauliyobo merged commit ee7d4f0 into develop Dec 15, 2024
6 checks passed
@pauliyobo pauliyobo deleted the issue288 branch December 15, 2024 02:55
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.

Document cache is loaded even after a document is updated
1 participant