Skip to content

[6.x] Defer image cache stats in the Cache Manager - #15743

Merged
duncanmcclean merged 3 commits into
6.xfrom
defer-image-cache-stats
Oct 29, 2026
Merged

duncanmcclean merged 3 commits into
6.xfrom
defer-image-cache-stats

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

This pull request fixes an issue where the Cache Manager utility would time out when the Glide cache contained lots of images, especially when it lives on a remote disk like S3.

This was happening because the image cache stats are calculated by recursively listing every file in the Glide cache, and we were doing that before the page could render.

This PR fixes it by making the images prop an Inertia deferred prop, so the page renders straight away and the image cache stats are loaded in a follow-up request. A loading spinner is shown in the meantime.

CleanShot.2026-10-29.at.09.25.43.mp4

Fixes #15623

@duncanmcclean
duncanmcclean requested a review from a team as a code owner October 29, 2026 09:35
@duncanmcclean
duncanmcclean merged commit 12ae424 into 6.x Oct 29, 2026
64 checks passed
@duncanmcclean
duncanmcclean deleted the defer-image-cache-stats branch October 29, 2026 16:50
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.

CP Cache Utility: Opening the cache manager times out when the Glide Cached Presets are too big

2 participants