Troubleshooting & Compatibility

Broken layouts, errors, and unexpected behavior.

How to fix the undefined reading ‘use’ error.

This article can help you if you've checked your browser console and found the following error on your website: Uncaught TypeError: Cannot read properties of undefined (reading 'use') Check if this error is caused by WP Rocket Load your page…

How to use WP Rocket with Bedrock WordPress Boilerplate

Heads Up! This tutorial is very specific and dedicated to experienced developers. If you are not familiar with Bedrock it's because you are not using it. In this case, you can safely skip reading this article. Bedrock is an open…

Images are not showing up

In some cases, WP Rocket's features can prevent all or some images from showing up. Most of the time, this behavior is caused by either the LazyLoad or Delay JavaScript execution feature.LazyLoad issues If disabling LazyLoad fixes the issue, please…

Importing WooCommerce products is slow

Problem Importing products in bulk, for example, using WooCommerce's CSV importer, is slow when WP Rocket is activated This can also happen when importing data into other content types with a plugin like WP All Import, or similar.Cause When the…

Invalid patterns of exclusions

Certain patterns of exclusions cannot be handled and are automatically removed. If you add invalid patterns, you will see the following admin notice: WP Rocket: The following pattern is invalid and has been removed. This is because the exclusion fields…

Is WP Rocket GPDR compliant?

Yes, WP Rocket is fully GDPR compliant. We do not store or access any personal data. Also, no cookies are added by WP Rocket. You can find this information on our FAQ page, and we have some information about personal data…

ManageWP: how to clear and preload WP Rocket cache

You can clear and preload WP Rocket cache from your ManageWP control panel. To do it, you can use the following snippet.  <?php // ManageWP PHP Snippet, will clear the cache and trigger a preload. // related doc: https://docs.wp-rocket.me/article/1320-managewp-how-to-clear-wp-rocket-cache // Load…