Caching plugins and optimization configurations, while boosting your site’s speed, can sometimes interfere with other plugins if set too aggressively.
For My Agile Privacy, this can lead to issues like invalidated cookie blocking and script loading problems. Here’s how to configure WP Rocket for optimal compatibility so you get both speed and GDPR compliance.
To ensure My Agile Privacy functions correctly, exclude its CSS from minification, combination, and other optimizations in WP Rocket.
Add the following lines to both the “CSS Excluded” and “CSS Safelist” fields in WP Rocket’s settings:
/wp-content/plugins/myagileprivacy/frontend/css/(.*).css
/wp-content/plugins/myagilepixel/frontend/css/(.*).css
Also, exclude the following JavaScript paths from minification, combination, deferred loading, and deferred execution:
/wp-content/plugins/myagileprivacy/frontend/(.*).js
/wp-content/plugins/myagilepixel/frontend/(.*).js
/wp-content/local-cache/my-agile-pixel/(.*).js
/wp-content/local-cache/my-agile-privacy/(.*).js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/(.*).js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/(.*).js
Paste these in the relevant JavaScript exclusion fields of WP Rocket.
Always remember to save your changes after setting these exclusions. These configurations should guarantee that My Agile Privacy works as intended.
After making changes, always check your website to ensure everything works properly.
In some cases, you may need to disable “defer javascript execution” in the Optimization > Javascript files section if you notice further issues.
For any questions or issues, you can consult our support or reach out to WP Rocket’s support team.