Caching plugins and optimization configurations, while enhancing web page loading speeds, may inadvertently affect the functionality of certain plugins if configured overly aggressively.
In particular, My Agile Privacy may face issues such as invalidated cookie blocking and script loading hindrances due to these settings. This article provides guidance on configuring WP Rocket to ensure compatibility with My Agile Privacy, thus avoiding such issues.
WP Rocket is a widely recognized and powerful caching plugin for WordPress, offering various features including page caching, file minification, deferred script loading, and database optimization. With appropriate settings, it can seamlessly integrate with My Agile Privacy, providing both speed and GDPR compliance.
To ensure smooth functionality of the My Agile Privacy plugin, it's essential to exclude its CSS from minification, combination, and optimization in WP Rocket. You can achieve this by entering the following string into the exclusion fields of WP Rocket settings:
/wp-content/plugins/myagileprivacy/frontend/css/(.*).css
/w-content/plugins/myagilepixel/frontend/css/(.*).css
This string should be entered in both the "CSS excluded" field and the "CSS safelist" field.
Similarly, you should exclude the JavaScripts used by My Agile Privacy from minification, combination, deferred loading, and deferred execution. To do this, enter the following strings into the exclusion fields of the WP Rocket settings:
/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
After entering these strings, ensure to save your changes. These exclusions should guarantee the proper functionality of My Agile Privacy.
Always remember to verify that your site is functioning correctly after adjusting any optimization or caching settings.
If you encounter any issues, consider refining your settings or seeking assistance from either our support service or WP Rocket's support team.