DEAL ENDS IN:

CHIRSTMAS SALE!

UP TO 40% OFF!

GET IT NOW

Advanced

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

  1. Go to the editing option of the page or post where you would like to present personalized content.
  2. Check the “Never cache this page” checkboxWP Rocket caching options

Option 2: Via the WP Rocket settings page:

  1. On your WordPress admin panel Go to settings > WP Rocket
  2.  On the side menu, select Advanced rules
  3. Under “Never Cache URL(s)”, specify URLs of pages or posts that should never be cached (one per line)Perevent caching of a page via the WP Rocket settings

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

  1. On your WordPress admin panel Go to settings > WP Rocket
  2.  On the side menu, select Advanced rules
  3. Under “Never Cache Cookies”, specify the following cookie IDs (one per line):
    ifso_visit_counts
    ifso_recurrence_data
    ifso_page_visits
    ifso_group_nameA screenshot of the WP Rocket setting page showing how to exclude pages with cookies from the cache
Ready to get started?
Try it on your website