{"id":10536,"date":"2019-05-20T10:00:51","date_gmt":"2019-05-20T14:00:51","guid":{"rendered":"https:\/\/blog.litespeedtech.com\/?p=10536"},"modified":"2019-05-20T10:00:51","modified_gmt":"2019-05-20T14:00:51","slug":"litespeed-cache-vs-wp-rocket","status":"publish","type":"post","link":"https:\/\/lswp.store\/index.php\/2019\/05\/20\/litespeed-cache-vs-wp-rocket\/","title":{"rendered":"LiteSpeed Cache vs. WP Rocket"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-10552\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket2.png\" alt=\"LSCWP vs WP Rocket2\" width=\"1000\" height=\"500\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket2.png 1000w, https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket2-300x150.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket2-768x384.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket2-600x300.png 600w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>Choosing a cache plugin for your WordPress site can be a daunting task, but we are here to make things a little bit easier for you. Today we are comparing <a href=\"https:\/\/www.litespeedtech.com\/wordpress-acceleration-with-lscache\">LiteSpeed Cache<\/a> and <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a>.<\/p>\n<h2>LiteSpeed Cache vs. WP Rocket<\/h2>\n<p>Before we do a specific feature list comparison, let\u2019s talk about some of the main similarities and differences between the two plugins.<\/p>\n<h3>Caching<\/h3>\n<p>Both plugins provide full-page caching for WordPress. This essentially means that they store static snapshots of the pages on your site. They can do this because the dynamically-generated pages are effectively the same each time they are built. Rather than making your visitors wait for WordPress and PHP to assemble the pages for each request, a page cache can serve them the snapshots much faster.<\/p>\n<h4>Caching with WP Rocket<\/h4>\n<p><strong>WP Rocket<\/strong>, like most other WordPress cache plugins (including LiteSpeed), uses rewrite rules to tell the server where to look for cached content. It places pages in the cache by writing to the file system, and purges pages from the cache by deleting the files. It can tell whether or not a page is cached by checking for the presence of the file. And it can tell if a cached page has expired by comparing the file time to the page\u2019s TTL.<\/p>\n<h4>Caching with LiteSpeed<\/h4>\n<p>The <strong>LiteSpeed Cache<\/strong> plugin works in a similar way, with one important difference: the plugin is not <em>actually<\/em> doing the caching. The basic LSCache functions are carried out by LiteSPeed Web Server\u2019s builtin cache module. The plugin is provided as an easy way for WordPress to communicate with the cache engine, but it doesn\u2019t execute any of the caching tasks, and the cache files themselves are not stored within the WordPress file structure.<\/p>\n<p>There are many benefits to this server-side caching arrangement. Here are a few of them:<\/p>\n<h5>* Accurate Purge<\/h5>\n<p>Because of the plugin\u2019s tight integration with the server on one end, and with WordPress on the other, LSCache remembers things about the cache entries that other plugins cannot, and it is able to act efficiently when content changes. When content is created or edited and must be purged from the cache, LSCache uses a tag-based system to identify related content that must also be purged. In this way, there is never too much or too little removed from the cache.<\/p>\n<h5>* Efficient Cache Cleanup<\/h5>\n<p>Tags are tracked and stored in shared memory. This provides an efficient way of determining when a page needs to be purged. When LiteSpeed receives the purge header, it simply marks the related tags as \u201cpurged\u201d but does not actually delete the files on the file system. This is to avoid heavy disk I\/O while serving the response. LiteSpeed Server will deal with the outdated entries during non-busy CPU cycles and delete files in small batches with minimum side effects.<\/p>\n<h5>* Compression<\/h5>\n<p>Another LiteSpeed advantage is Gzip and Brotli support out of the box. This allows compressed content to be stored in cache, which fits the majority of modern browsers. WP Rocket requires dynamic compression <em>before<\/em> serving each cached response, which results in much higher CPU usage in the real world.<\/p>\n<h5>* Cache Varies<\/h5>\n<p>LiteSpeed\u2019s server-side cache engine allows it to use vary cookies to serve multiple versions of cached content based on things like device category (mobile vs. desktop), geographic location, cookie, and user group. There is enormous flexibility in the LiteSpeed system.<\/p>\n<h3>Cost<\/h3>\n<p>As of this writing, a <strong>WP Rocket<\/strong> license starts at $49\/year. There is no free option or trial version, but they do offer a 14-day money back guarantee.<\/p>\n<p>The <strong>LiteSpeed Cache<\/strong> plugin is 100% free, however a LiteSpeed web server is required in order to use the server-side cache, and there may be costs there, depending on your needs. There is a free, open source version (<a href=\"https:\/\/openlitespeed.org\/\">OpenLiteSpeed<\/a>), or you can <a href=\"https:\/\/www.litespeedtech.com\/wordpress-acceleration-with-lscache\/get-litespeed-hosting\">get an Enterprise license<\/a>. License pricing ranges from Free for single site owners, to $96\/month for large hosting companies, with several levels in between.<\/p>\n<h3>eCommerce<\/h3>\n<p>When you run an online shop, there are necessarily going to be pages (and sections of pages) that can\u2019t be stored in the public cache. Shopping cart pages and last-viewed product widgets, are good examples of this.<\/p>\n<p><strong>WP Rocket<\/strong> supports eCommerce solutions such as WooCommerce by automatically considering cart and checkout pages uncacheable. Pages with this private content are dynamically generated each time and served uncached.<\/p>\n<p><strong>LiteSpeed<\/strong> allows you to cache WooCommerce and other eCommerce pages using ESI (Edge Side Includes). With ESI, holes are punched on a public page, and are filled with shopping cart data and other private content. Then, the mixed-content page can be served to the shopper, fully cached.<\/p>\n<h3>Premium Services<\/h3>\n<p><strong>WP Rocket<\/strong> does not offer any extra premium services.<\/p>\n<p><strong>LiteSpeed Cache<\/strong> offers Image Optimization, Critical CSS Generation, Unique CSS Generation, and Low-Quality Image Placeholder Generation. These services are performed remotely on QUIC.cloud servers so as not to put any extra load on yours. Each service includes some free quota every month. After that quota may be purchased. More details are available <a href=\"https:\/\/quic.cloud\/online-services-costs\/\">at QUIC.cloud<\/a>.<\/p>\n<h3>Cache Preloading<\/h3>\n<p>WP Rocket and LiteSpeed Cache both have crawlers. These crawlers traverse the site, caching any pages that are not currently cached.<\/p>\n<p><strong>WP Rocket<\/strong>\u2019s crawler simulates a non-logged-in desktop user visit.<\/p>\n<p><strong>LiteSpeed Cache<\/strong>\u2019s crawler also simulates a non-logged-in desktop user visit by default, but may also be configured to crawl as a mobile user. Additionally, for sites that employ user-group-based cache varies (i.e. retail customers vs. wholesale customers), or cookie-based varies (i.e. visitors with an affiliate cookie), the cache may be crawled simulating a logged-in user from any particular user group, or a user with a particular cookie. If you have the resources available, you could theoretically have dozens of crawlers going at once, simulating all sorts of user interactions.<\/p>\n<h2>Benchmarks<\/h2>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket-a.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-10540\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket-a-300x213.png\" alt=\"LiteSpeed Cache vs. WP Rocket: Benchmarks\" width=\"300\" height=\"213\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket-a-300x213.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket-a-600x426.png 600w, https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket-a.png 767w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>We <a href=\"https:\/\/www.litespeedtech.com\/benchmarks\/wordpress\">compared<\/a> LiteSpeed Web Server + LSCache to various other solutions, including WP Rocket.<\/p>\n<p>Our results showed Apache + WP Rocket peaking around 700 requests per second.<\/p>\n<p>LiteSpeed Web Server + WP Rocket delivered around 3,800 requests per second.<\/p>\n<p>LiteSpeed Web Server + LSCache easily handled close to 4,500 requests per second.<\/p>\n<h2>Feature Comparison<\/h2>\n<p>Let\u2019s take a closer look at the specific features that come built into LSCache and WP Rocket.<\/p>\n<pre>&#x2705; = has the feature\n&#x1f4b0; = has the feature, but it costs extra money in addition to any license costs\n&#x274c; = doesn't have the feature\n<\/pre>\n<p>The features are listed using LiteSpeed Cache terminology. If the other plugin calls it something different, we put their term in parentheses.<\/p>\n<h3>Cache Features<\/h3>\n<p>Both LiteSpeed Cache and WP Rocket have a variety of functions, but caching is the star of the show. While both plugins feature a full-page cache, LiteSpeed\u2019s cache engine is smart and flexible, allowing you to cache more of your site for more visitors. LSCache gives you the ability to confidently cache frequently-changing content and eCommerce sites, without resorting to marking pages \u201cuncacheable.\u201d<\/p>\n<p>Learn more about how caching WordPress works in general, and how LiteSpeed Cache works in particular <a href=\"https:\/\/lswp.store\/2017\/07\/19\/wpw-litespeed-caching-101\/\">here<\/a>.<\/p>\n<p>Remember, LiteSpeed-powered hosting is required in order to use LSCache\u2019s cache features.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Feature<\/strong><\/td>\n<td><strong>LiteSpeed Cache<\/strong><\/td>\n<td><strong>WP Rocket*<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Full-Page Cache<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Tag-Based &#8220;Smart Purge&#8221;<\/td>\n<td>&#x2705;**<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<tr>\n<td>Tight Integration With Server<\/td>\n<td>&#x2705;**<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<tr>\n<td>Edge Side Includes (ESI)<\/td>\n<td>&#x2705;**<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<tr>\n<td>Crawler<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code> (Cache Preloading)<\/td>\n<\/tr>\n<tr>\n<td>WordPress Multi-Site Support<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Cache Logged-in Users<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code> (User Cache)<\/td>\n<\/tr>\n<tr>\n<td>Cache Separate Mobile View<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Cache Vary on User Group<\/td>\n<td>&#x2705;**<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<tr>\n<td>Cache Vary on Geographic Location, Currency, etc<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Cache REST API<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Purge Selected URLs on a Schedule<\/td>\n<td>&#x2705;**<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<tr>\n<td>Browser Cache Support<\/td>\n<td>&#x2705;**<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><small>* WP Rocket feature list is based on what is listed publicly on the WP Rocket website<br \/>\n**Feature requires a licensed copy of LiteSpeed Web Server with Cache Module<\/small><\/p>\n<h3>Optimization Features<\/h3>\n<p>If you use site evaluation tools, like Google\u2019s PageSpeed Insights, or GTmetrix, you\u2019ll want a nice selection of optimization features in order to implement the tool\u2019s suggested site improvements.<\/p>\n<p>Unlike the Cache Features above, LiteSpeed Cache\u2019s Optimization Features may be used freely by anyone with any web server (LiteSpeed, Apache, nginx, etc.)<\/p>\n<table>\n<tbody>\n<tr>\n<td>Feature<\/td>\n<td>LiteSpeed Cache<\/td>\n<td>WP Rocket*<\/td>\n<\/tr>\n<tr>\n<td>CDN Support<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Database Optimization<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>CSS Minify<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>CSS Combine<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code> (Concatenation)<\/td>\n<\/tr>\n<tr>\n<td>JavaScript Minify<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>JavaScript Combine<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code>(Concatenation)<\/td>\n<\/tr>\n<tr>\n<td>Load CSS Asynchronously<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Load JavaScript Deferred<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>HTML Minify<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Exclude Selected URI&#8217;s from Optimization<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Remove Query Strings<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Remove Google Fonts<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Lazy Load Images<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Lazy Load iframes<\/td>\n<td>&#x2705;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Wildcard Usage in CDN Support<\/td>\n<td>&#x2705;<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><small>* WP Rocket feature list is based on what is listed publicly on the WP Rocket website<\/small><\/p>\n<h3>Provided Services<\/h3>\n<p>LiteSpeed provides premium optimization services on our own servers.<\/p>\n<table>\n<tbody>\n<tr>\n<td>Service<\/td>\n<td>LiteSpeed Cache*<\/td>\n<td>WP Rocket**<\/td>\n<\/tr>\n<tr>\n<td>Critical CSS Generation<\/td>\n<td>&#x2705; | &#x1f4b0;<\/td>\n<td><code>&#x2705;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Unique CSS Generation<\/td>\n<td>&#x2705; | &#x1f4b0;<\/td>\n<td><code>&#x274c;<\/code><\/td>\n<\/tr>\n<tr>\n<td>Image Optimization<\/td>\n<td>&#x2705; | &#x1f4b0;<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<tr>\n<td>Low Quality Image Placeholder Generation<\/td>\n<td>&#x2705; | &#x1f4b0;<\/td>\n<td>&#x274c;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><small>* These LiteSpeed features all include an amount of free quota, and more may be purchased, if required<\/small><br \/>\n<small>** WP Rocket feature list is based on what is listed publicly on the WP Rocket website<\/small><\/p>\n<h3>Costs<\/h3>\n<p>The LiteSpeed Cache plugin is free and always will be. Caching functionality requires a LiteSpeed web server, which may incur a fee. The optimization functionality, which is separate from caching, may be freely used by anyone with any web server. Online services powered by QUIC.cloud all have a free tier, but charge for additional service.<\/p>\n<p>For more information about how to get powered by LiteSpeed Web Server and the costs involved, <a href=\"https:\/\/www.litespeedtech.com\/wordpress-acceleration-with-lscache\/get-litespeed-hosting\">see our website<\/a>.<\/p>\n<table>\n<tbody>\n<tr>\n<td>Service<\/td>\n<td>LiteSpeed Cache<\/td>\n<td>WP Rocket*<\/td>\n<\/tr>\n<tr>\n<td>Plugin Cost<\/td>\n<td>FREE**<\/td>\n<td>PAID<\/td>\n<\/tr>\n<tr>\n<td>Support Cost<\/td>\n<td>FREE<\/td>\n<td>PAID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><small>* WP Rocket costs are based on what is listed publicly on the WP Rocket website<br \/>\n**Requires Licensed copy of a LiteSpeed Web Server with Cache Module for Cache Features<\/small><\/p>\n<h2>Conclusion<\/h2>\n<p>LiteSpeed Cache for WordPress beats WP Rocket in flexibility and speed. Cost varies with a variety of factors for both plugins, but LiteSpeed Cache has some free options that WP Rocket does not.<\/p>\n<p><strong>If you\u2019d like to try LiteSpeed Cache, <a href=\"https:\/\/www.litespeedtech.com\/wordpress-acceleration-with-lscache\">drop by our website<\/a> to learn how to get started!<\/strong><\/p>\n<p>&#8212;<br \/>\n<em>This content was last verified and updated in March of 2022.<\/em> If you find an inaccuracy, please let us know! In the meantime, see <a href=\"https:\/\/docs.litespeedtech.com\">our documentation site<\/a>\u00a0for the most up-to-date information.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We compare features and discuss important differences between LiteSpeed Cache and WP Rocket.<\/p>\n","protected":false},"author":1,"featured_media":10552,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28],"tags":[68,316,318],"class_list":["post-10536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cache","tag-compare-wp-plugins","tag-wordpress","tag-wp-rocket"],"jetpack_featured_media_url":"https:\/\/lswp.store\/wp-content\/uploads\/2019\/05\/LSCWP-vs-WP-Rocket2.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/10536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/comments?post=10536"}],"version-history":[{"count":0,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/10536\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media\/10552"}],"wp:attachment":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media?parent=10536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/categories?post=10536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/tags?post=10536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}