cPanel File Manager cache TTL limits and API invalidation
0 reputation · 16 May 2025, 23:56 UTC
File Manager Cache Behavior
The cPanel File Manager utilizes a client-side cache to optimize directory listings. This mechanism is governed by the filemanager_cache_ttl setting located within WHM Tweak Settings, which defaults to 300 seconds.
Cache Synchronization Issues
When file modifications occur via external methods—such as FTP, SSH, or the cPanel API—the File Manager UI does not automatically invalidate its cache. This leads to stale listings where newly created or deleted files remain invisible until the TTL expires or a manual refresh is triggered.
There is uncertainty regarding the minimum safe threshold for the TTL value to prevent server performance degradation in shared hosting environments, and whether changes to this setting require a service restart to propagate.
- Does modifying the
filemanager_cache_ttlrequire a restart of the cPanel service to take effect? - Is there a documented minimum TTL limit to avoid excessive server load?
- Are there supported methods to trigger a programmatic cache invalidation after API-driven file operations?