Dynamic exclusions and inclusions
All exclusions and inclusions required for compatibility, i.e. prevent WP Rocket from breaking a site's layout or functioning, are stored in WP Rocket's cloud and distributed in specific lists for specific features.
The following features use dynamic exclusions and inclusions:
- Remove Unused CSS
- Load JavaScript deferred
- Delay JavaScript execution
- Minify and Combine JavaScript files
- Caching query strings
- Preload cache
- Incompatible optimization plugins
- Staging and local domains
- Automatic Lazy Rendering
The lists are downloaded to your site automatically every week and after every WP Rocket update. This way, you don't need to download new plugin versions to get advantage of new compatibility updates.
The lists will be stored as JSON files inside WP Rocket's configuration folder, at /wp-content/wp-rocket-config/, as follows:
dynamic-lists.json
- Contains the automatic (mandatory) exclusions and inclusions for all optimizations.dynamic-lists-delayjs.json
- Contains the compatibility exclusions for the One-click exclusions boxes.dynamic-lists-incompatible-plugins.json
- To store the list of incompatible plugins.
Manual update of lists
You can also download the lists manually if you want to. For this, please use the Update Lists button in the Tools tab, here:
In order to run the updates this feature relies on cron. For this, it uses a cron event called rocket_update_dynamic_lists
. Additionally, the IP found here should be allowed in your server.
If by any reason your server setup can't run the automatic downloads of the lists, every update of WP Rocket will include an updated version of each JSON file to be used as fallback.
Notes:
- An active license of WP Rocket is required to receive the dynamic lists updates.
- Any custom exclusions and inclusions you've added using the different boxes in WP Rocket settings page will still be applied.