
If-So Dynamic Content and WP Rocket
Important update! If-So is now complitely compatible with page caching!!! You can keep using cache as ususal and load the dynamic content using Ajax.Learn more about dynamic content and page caching →
Using If-So Dynamic Content while using WP Rocket
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.
Naturally, page caching (Presenting users with a “snapshot” of the page instead of rendering it every time the page loads) prevents the possibility to use dynamic content and neutralizes the option to use cookies.
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)

Click here to learn more about dynamic content and page caching.
Specifying cookies that should prevent a page from getting cached while using If-So and WP Rocket
- On your WordPress admin panel Go to settings > WP Rocket
- On the side menu, select Advanced rules
- Under “Never Cache Cookies”, specify the following cookie IDs (one per line):
ifso_visit_counts
ifso_recurrence_data
ifso_page_visits
ifso_group_name
Was this Helpful ?
We're sorry couldn’t be more helpful ☹️