Function request: automatically cache new text (configurable cache size and translation options) when starting
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 39k
- Forks
- 2.1k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 10
Description
Clear and concise description of the problem
Description
I hope that when the application starts, the latest articles can be automatically cached to optimise the offline reading experience
Detailed requirements
-
** Optional Functions **
Add a switch for "Cache new articles at startup" in the Settings.
It is off by default. Users can manually turn it on. -
** Cache Size setting **
Users can customize the number of cached articles or the total size (for example: 50MB, 100MB, 200MB). -
** Cache Content Options **
Users can choose whether to cache the translated content of articles and whether to cache the content in reading mode
Expected effect
After opening, the application will automatically download several of the latest articles to the local cache when it starts up.
It can be read offline.
If the cache is full, the old content will be automatically cleared by time or priority policy.
Supplementary suggestions
Display the current cache usage on the cache page.
- Supports manual cache cleaning.
Suggested solution
.
Alternative
No response
Additional context
No response
Validations
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- This issue is valid
Contributor guide
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
No files, tests, or entry points are named. Start by locating the startup flow, Settings, and cache page, then trace existing offline caching and translation or reading-mode options; done means configurable startup caching, cache limits and cleanup, usage display, and manual clearing all work as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100