wordpress-mobile / wordpress-mobile/WordPress-iOS
Update cache TTL interval to match HTTP cache control headers
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.9k
- Forks
- 1.2k
- Avg merge
- 23h 51m
- Merged PRs (30d)
- 58
Description
https://github.com/wordpress-mobile/WordPress-iOS/pull/21348#discussion_r1303657616
It's probably not ideal to cache avatars in memory without providing a time-to-live interval that roughly matches the HTTP cache control headers (around 5 minutes?). If you change the outside of the app, it won't update until the memory cache clears, which may need to happen while the app is running.
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
Start by reading the linked discussion in pull request 21348 and locate the in-memory avatar cache. Check how its time-to-live relates to the HTTP cache-control interval; done means cached avatars can refresh during a running app after roughly five minutes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100