Exclude WiserReview Scripts from WP Rocket Caching in WooCommerce

If your site uses WP Rocket, it may cache or combine WiserReview’s external JavaScript and CSS files. This can cause widgets or review forms not to load correctly.

To fix this, you need to exclude WiserReview’s script URLs from WP Rocket’s caching and optimization.

1. Identify the Script to Exclude

WiserReview loads assets from:

https://embed.wiserreview.com/*

These files should always load live from our CDN and must not be cached, minified, or combined by WP Rocket.

2. Exclude WiserReview Scripts from JS Optimization

  1. Go to your WordPress Dashboard → Settings → WP Rocket → File Optimization

  2. Find the JavaScript Files section.

  3. Under Excluded JavaScript Files, add this line:

    https://embed.wiserreview.com/*
  4. Click Save Changes and Clear Cache.

This ensures WP Rocket does not minify or combine the WiserReview scripts.

3. Exclude from CSS Optimization (if applicable)

If you also use CSS Optimization, repeat the same process:

  1. In WP Rocket → File Optimization → CSS Files, find Excluded CSS Files.

  2. Add:

    https://embed.wiserreview.com/*
  3. Save and clear the cache.

4. Optional: Disable Delay JS for WiserReview

WP Rocket’s “Delay JavaScript Execution” feature may cause our widget to load more slowly.

To prevent this:

  1. Go to WP Rocket → File Optimization → Delay JavaScript Execution.

  2. In the Excluded JavaScript Files field, add:

    https://embed.wiserreview.com/*
    wiserreview
  3. Save changes and clear cache.

5. Clear Cache and Verify

  1. Click “Clear WP Rocket Cache” and “Purge CDN Cache” (if you use one).

  2. Open your website in an incognito window.

  3. Check if the review widget loads correctly.

Was this helpful?