WP Super Cache WordPress Plugin

WP Super Cache is a popular caching plugin for WordPress that generates static HTML files for faster page loading. To ensure the proper functioning of Sirdata CMP scripts, it’s essential to exclude them from caching and other optimizations.


Steps to Exclude Sirdata CMP Scripts in WP Super Cache

  1. Access WP Super Cache Settings

    • Log in to your WordPress Admin Dashboard.

    • Navigate to Settings > WP Super Cache.

  2. Disable Caching for Sirdata CMP Scripts

    • Go to the Advanced tab in WP Super Cache settings.

    • Scroll to the Accepted Filenames & Rejected URIs section.

    • In the field labeled "Add here strings (not a filename) that forces a page not to be cached", add the following domains or scripts:

      .consentframework.com
      .abconsent.net
  3. Exclude Pages Using Sirdata CMP Scripts (if necessary)

    • If specific pages rely on Sirdata CMP scripts, add their URLs to the "Rejected URIs" field. For example:

      /page-with-cmp
  4. Save Changes

    • After adding the exclusions, click Save Settings to apply the changes.

  5. Clear the Cache

    • In the WP Super Cache settings, go to the Contents tab.

    • Click on Delete Cache to ensure the exclusions take effect immediately.

  6. Verify the Exclusions

    • Test your website to ensure that the Sirdata CMP scripts are working correctly. Use browser developer tools to verify that the scripts are being loaded properly and are not cached.


Why Exclude Sirdata CMP Scripts?

  • Dynamic and Geolocated Behavior: Sirdata CMP scripts dynamically adapt based on the user’s location and preferences. Caching these scripts can result in outdated or incorrect content being served.

  • Regulatory Compliance: These scripts are critical for adhering to privacy laws. Any interference from caching may lead to non-compliance, legal complaints, or revenue loss.


By following these steps, WP Super Cache will exclude Sirdata CMP scripts from its caching processes, ensuring proper functionality and compliance.

Dernière mise à jour