WP Rocket is a speed optimization plugin for WordPress helping you implement a variety of speed-boosting features to your WordPress site. Among others, one of the features used by WP rocket to speed-up page loading time is page caching.
The solution – excluding pages and cookies from the cache
Dynamic content is in common use in a significant amount of websites (every e-commerce website for example). The solution offered by WP Rocket, and any other caching plugins, is the option to exclude specific pages from the cache, and the option to specify IDs of cookies that, when set in the visitor’s browser, should prevent a page from getting cached.
How to exclude pages from the cache while using WP Rocket
Excluding pages from the cache can be done in two ways:
Option 1: Via the editing option of the page or post
Go to the editing option of the page or post where you would like to present personalized content.
Check the “Never cache this page” checkbox
Option 2: Via the WP Rocket settings page:
On your WordPress admin panel Go to settings > WP Rocket
On the side menu, select Advanced rules
Under “Never Cache URL(s)”, specify URLs of pages or posts that should never be cached (one per line)