wordpress-mobile / wordpress-mobile/WordPress-iOS

Update cache TTL interval to match HTTP cache control headers

Open
#21,421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Task UI
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.