WP Rocket Caching Plugin Setup for WordPress

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1170
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1094
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    830
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    879
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    453

Setting Up WP Rocket Caching Plugin for WordPress

WP Rocket is a paid caching plugin ($59/year per site), the de-facto standard for WordPress. Includes page caching, CSS/JS minification and concatenation, lazy image loading, preloading, CDN integration.

Key Settings

Cache: enable separate caching for mobile devices (not needed if theme is responsive, needed if separate mobile theme). Cache TTL—10 hours for content sites, 1 hour for e-commerce with dynamic prices.

File Optimization: CSS and JS minification—enable carefully, test visually. CSS concatenation—only if no HTTP/2. JS concatenation—almost never enable, breaks scripts.

Media: lazy load images—enable. Replace YouTube/Vimeo thumbnails—enable, replaces iframe with preview, reduces requests to external resources.

Preloading: Preload Cache—enable, WP Rocket automatically warms cache after purge. Preload Links—enable, preloads pages on hover.

Advanced Rules:

# Never Cache URLs
/cart/
/checkout/
/my-account/
/wc-api/
/.*/feed/

# Never Cache Cookies
woocommerce_cart_hash
woocommerce_items_in_cart
wordpress_logged_in_

# Always Purge URLs
/blog/

CDN Integration

In the CDN section, specify CDN zone URL (Cloudflare, BunnyCDN, KeyCDN). WP Rocket replaces static file paths with CDN URLs.

For Cloudflare—use WP Rocket + Cloudflare Add-On: plugin automatically purges Cloudflare cache on publish.

// Programmatic WP Rocket cache clearing
if (function_exists('rocket_clean_domain')) {
    rocket_clean_domain(); // entire site
}
if (function_exists('rocket_clean_post')) {
    rocket_clean_post($post_id); // specific page
}

WP Rocket and WooCommerce

WP Rocket automatically excludes /cart/, /checkout/, /my-account/ from cache. Enable Fragment Caching for cart: cart widget in header updates dynamically via AJAX without breaking cache.

What NOT to Enable

  • Remove query strings—rarely useful, may break some plugins
  • Combine Google Fonts—Google Fonts no longer recommended via Google CDN (GDPR), better to self-host
  • Defer JS—test carefully, breaks plugins dependent on jQuery on load

Timeline

WP Rocket installation and basic setup with testing—3–4 hours.