The WP Rocket function rocket_rrmdir() attempts to delete the entire cache folder recursively. When the folder contains thousands of files or deep sub‑folders, the operation runs longer than PHP’s default execution time. The script stops and logs a timeout warning.
Additional factors such as mismatched file permissions, open file handles, or restrictive server limits also interrupt the delete loop. The result is a partially cleared cache and degraded performance.