Must-Use Plugin: wp-rocket-cache-busting-fix.php
Location: _project/_web/wp-content/mu-plugins/wp-rocket-cache-busting-fix.php
Purpose
Suppresses E_WARNING errors from RecursiveDirectoryIterator in WP Rocket when the cache/busting directory doesn't exist.
Hook
plugins_loaded— Sets up error suppression early in the load
Why It Exists
WP Rocket's cache-busting feature expects a specific directory structure. When it doesn't exist (e.g., first load, after cache clear), PHP warnings are generated. This fix silences them cleanly.