Skip to content

add auto clear cache for ios#2283

Open
Tlaster wants to merge 2 commits into
masterfrom
feature/auto-clear-cache
Open

add auto clear cache for ios#2283
Tlaster wants to merge 2 commits into
masterfrom
feature/auto-clear-cache

Conversation

@Tlaster

@Tlaster Tlaster commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

fix #2083

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7305ea244c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

Task { @MainActor in
UserDefaults.standard.set(now, forKey: lastVideoCheckKey)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recheck the video cache after sub-limit scans

Because lastVideoCheckKey is updated even when the cache is still below videoCacheLimit, any later growth during the next 24 hours is skipped by the guard above. For example, if the user briefly backgrounds with a small GSPlayer cache, then keeps scrolling/autoplaying enough videos to add several GB, subsequent background transitions that day return before measuring the cache, so the configured limit is not enforced until the next day; only throttle after a cleanup or use a shorter retry when no cleanup happened.

Useful? React with 👍 / 👎.

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.

Cache limit auto delete

1 participant