W3 Total Cache is a powerful tool for comprehensive cache management on WordPress. It offers features such as CSS/JS minification to reduce page size and speed up loading.
However, aggressive caching and optimization may compromise the preemptive blocking functions of My Agile Privacy, potentially affecting GDPR compliance.
To optimize speed while ensuring My Agile Privacy works correctly, follow these simple steps:
First, from your site's admin panel, go to: Performance > Minify.
On this page, focus on these fields:
- Never minify the following JS files
- Never minify the following CSS files
For proper operation, exclude the following JavaScript files (one per line):
/wp-content/plugins/myagileprivacy/frontend/js/my-agile-privacy-frontend.js
/wp-content/plugins/myagileprivacy/frontend/js/anime.js
/wp-content/local-cache/my-agile-privacy/cookie-shield.js
/wp-content/local-cache/my-agile-privacy/MyAgilePrivacyIabTCF.js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/cookie-shield.js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/MyAgilePrivacyIabTCF.js
And the following CSS files:
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-frontend.css
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-notification-bar.css
/wp-content/plugins/myagileprivacy/frontend/css/animate.min.css
JavaScript:
/wp-content/plugins/myagilepixel/frontend/js/myagilepixel.js
/wp-content/local-cache/my-agile-pixel/cookie-shield.js
/wp-content/local-cache/my-agile-pixel/myagilepixel.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/cookie-shield.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.js
CSS:
/wp-content/plugins/myagilepixel/frontend/css/mapx.css
Remember to save changes after setting these exclusions to ensure proper operation of My Agile Privacy and My Agile Pixel.
Always test your site after any caching or optimization changes.
If you encounter any issues, you may need to further adjust settings or contact our support team or W3 Total Cache’s support.