Problem with cache
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.2k
- Forks
- 394
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 7
Description
Hello,
I have a PDF that changes regularly, and I load it with loadPDF() almost every time it changes, within the same running instance.
loadPDF() is caching all files it has loaded, based on their path, but not on the last modification date.
The cached data are stored internally in a private var named _binCache, not available from the outside.
Would be nice to improve cache system with modification date, or to allow the user to clear this cache.
(otherwise thanks for this tool !)
EDIT: A way to solve this problem without touching the existing code is to use parseBuffer(), after having opened the file "manually".
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing loadPDF() and the private _binCache described in the issue. Check how cached entries are keyed and how a changed PDF can be detected, then consider the requested modification-date invalidation or cache-clearing behavior. Done means repeated loadPDF() calls use updated file contents, or users have a documented way to clear the cache.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100