You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CP Cache Utility: Opening the cache manager times out when the Glide Cached Presets are too big #15623
When opening the Control Panel’s Utilities → Cache page, the request can return a 504 Gateway Timeout.
The Glide cache is configured on an S3 disk. In Statamic\Http\Controllers\CP\Utilities\CacheController::getImageCacheStats(), the cache manager recursively lists the Glide cache contents with listContents('', true) and calculates the file count and total size. This appears to make the page load increasingly expensive as the number of cached images grows.
We have currently 99,636 generated Presets
Observed: 504 at 2026-10-09 06:43:35 GMT; Cloudflare Ray ID: a47b66eb8dd3a9-FRA
How to reproduce
Configure the Glide cache to use an S3-backed disk.
Populate the cache with a large number of generated images.
Open Control Panel → Utilities → Cache.
Actual result: The request GET /cp/traumurlab/utilities/cache returns 504 Gateway Timeout.
Expected result: The cache manager loads without requiring a full synchronous traversal of the remote image cache on every page visit.
Could the Glide cache statistics be cached, computed asynchronously, or made optional? Is there a recommended configuration for using the cache manager with a remote S3 disk?
changed the title [-][CP Cache Utility] Opening the cache manager times out when the Glide Cached Presets are too big[/-][+]CP Cache Utility: Opening the cache manager times out when the Glide Cached Presets are too big[/+]on Oct 9, 2026
Activity
[-][CP Cache Utility] Opening the cache manager times out when the Glide Cached Presets are too big[/-][+]CP Cache Utility: Opening the cache manager times out when the Glide Cached Presets are too big[/+]HannesEURESA commentedon Oct 30, 2026
Thanks, now we can reach the Cache Manager, but after a short time the request GET /cp/traumurlab/utilities/cache returns 504 Gateway Timeout again.