Skip to content

fix(settings): prune the thumbnail cache on hits and never twice at once - #924

Merged
thep0y merged 1 commit into
mainfrom
fix/settings-thumbnail-cleanup-schedule
Nov 26, 2026
Merged

thep0y merged 1 commit into
mainfrom
fix/settings-thumbnail-cleanup-schedule

Conversation

@thep0y

@thep0y thep0y commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

The probabilistic cleanup ran only after a cache miss, so a warm library — the one whose cache is large enough to need pruning — never enforced the age or size limits. It now runs before the hit check as well. A single-slot gate keeps a burst of tile requests from spawning several full-directory walks on top of each other.

The probabilistic cleanup ran only after a cache miss, so a warm library — the one whose cache is large enough to need pruning — never enforced the age or size limits. It now runs before the hit check as well. A single-slot gate keeps a burst of tile requests from spawning several full-directory walks on top of each other.
@thep0y thep0y added fix rust Pull requests that update rust code labels Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a77f924d-a76c-4a3c-9aab-52dbb63eaef4
Commits

Reviewing files that changed from the base of the PR and between 58a40fc and 0718603.

Files selected for processing: 1

  • crates/dwall-settings/src/thumbnail/cache.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@thep0y
thep0y merged commit 509d49b into main Nov 26, 2026
11 checks passed
@thep0y thep0y removed the automerge label Nov 26, 2026
@github-actions
github-actions Bot deleted the fix/settings-thumbnail-cleanup-schedule branch November 26, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant