Using recently viewed products widgets with WP Rocket

The following widgets are not compatible with page caching:

Problem

These widgets create and manage the lists of recently viewed products dynamically for each visitor.

With page caching, the recently viewed list is cached for the first visitor, and after that, everyone sees that same cached list, even if it's not what they looked at. 

Solution

To make sure the widget shows the right products, you need to disable WP Rocket's page caching.

This can be done using the helper plugin available in the Disable page caching article.

The helper plugin in that article disables page caching (while keeping optimizations) for all the site, but it's also possible to customize the helper to disable page caching only for the pages that use the widgets.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.