Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:lscwp:faq [2016/03/25 17:32]
Michael Alegre [How do I get WP-PostViews to display an updating view count?]
litespeed_wiki:cache:lscwp:faq [2020/05/04 13:46]
Shivam Saluja
Line 1: Line 1:
-====== ​LSCWP Frequently Asked Questions ​====== ​+====== ​LiteSpeed Cache for WordPress: FAQs====== 
 +**Please Note**: This wiki is valid for v2.9.x and below of the LiteSpeed Cache Plugin for WordPress. If you are using v3.0 or above, please see [[https://​docs.litespeedtech.com/​lscache/​lscwp/​overview/​|the new documentation]].
  
-==== Is the LiteSpeed ​Cache Plugin for WordPress free? ====+Here are some of our most Frequently Asked Questions. 
 +===== Why do the cache features require ​LiteSpeed ​Server===== 
  
-Yes, the plugin ​itself will remain free and open source, but only works with LiteSpeed Web Server ​5.0.10+. You are required ​to have LiteSpeed Web Server license with the LSCache module enabled.+This plugin ​communicates ​with your LiteSpeed Web Server ​and its built-in page cache (LSCache) to deliver superior performance to your WordPress siteThe plugin’s cache features indicate ​to the server that page is cacheable and for how long, or they invalidate particular cached pages using tags.
  
-==== Where are the cached files stored? ====+LSCache is a server-level cache, so it’s faster than PHP-level caches. [[https://​www.litespeedtech.com/​benchmarks/​wordpress|Compare with other PHP-based caches]].
  
-This plugin only instructs LiteSpeed Web Server on what pages to cache and when to purgeThe actual ​cached ​pages are stored ​and managed by LiteSpeed Web ServerNothing is stored on the PHP side.+A page cache allows the server ​to bypass PHP and database queries altogether. LSCache, in particular, because of its close relationship with the server, can remember things about the cache entries that other plugins cannot, ​and it can analyze dependenciesIt can utilize tags to manage the smart purging of the cache, and it can use vary cookies to serve multiple versions of cached ​content based on things like mobile vs. desktop,​ geographic location, ​and currencies[[https://​blog.litespeedtech.com/​tag/​caching-101/​|See our Caching 101 blog series]].
  
-==== Does LiteSpeed Cache for WordPress work with OpenLiteSpeed?​ ====+If all of that sounds complicated,​ no need to worry. LSCWP works right out of the box with default settings that are appropriate for most sites. [[litespeed_wiki:​cache:​lscwp:​beginner|See the Beginner’s Guide]].
  
-LiteSpeed ​Cache for WordPress currently only works for LiteSpeed Web Server enterprise editionbut there are plans to have OpenLiteSpeed support ​it later down the line.+**Don'​t have a LiteSpeed ​server?** We're beta testing our new QUIC.cloud CDN serviceand it allows sites on //any server// (nginx and Apache included) to experience ​the power of LiteSpeed caching! [[https://​quic.cloud|Click here]] to learn more or to give QUIC.cloud a try! 
 +===== What about the optimization features of LSCache? =====
  
-==== Is WooCommerce supported? ====+LSCWP includes additional optimization features, such as Database Optimization,​ Minification and Combination of CSS and JS files, HTTP/2 Push, CDN Support, Browser Cache, Object Cache, Lazy Load for Images, and Image Optimization! And now, many of these features do not require the use of a LiteSpeed web server.
  
-In short, yes. For WooCommerce versions 1.4.2 and above, this plugin will not cache the pages that WooCommerce deems non-cacheable. For versions below 1.4.2, we do extra checks to make sure that pages are cacheable. We are always looking ​for feedback, so if you encounter any problems, be sure to send us a support question.+===== Is the LiteSpeed Cache Plugin ​for WordPress free? =====
  
-==== How do I get WP-PostViews to display an updating view count? ====+Yes, LSCWP will always be free and open source. That said, a LiteSpeed server is required for the cache features, and there are fees associated with some LiteSpeed server editions. 
 + 
 +=====What server software is required for this plugin?​===== 
 + 
 +A LiteSpeed server is required in order to use the caching features of this plugin.  
 +  - LiteSPeed Web Server Enterprise with LSCache Module (v5.0.10+) 
 +  - OpenLiteSpeed (v1.4.17+) 
 +  - LiteSpeed WebADC (v2.0+) 
 +   
 +Any single server or cluster including a LiteSpeed server will work. 
 + 
 +Many of the optimization features may be used with any web server. LiteSpeed is not required. 
 + 
 +=====What is the difference between the LSCache Module for LSWS (requires a license) and the LSCache Plugin for WordPress (free)?​===== 
 + 
 +The LSCache Module is built into your licensed copy of LiteSpeed Web Server. When it comes to caching dynamic content, the LSCache Module does all of the work. 
 + 
 +The LSCache Plugin for WordPress is simply an interface. It allows WordPress to instruct the server Module on what to cache, how long to cache it, and when to purge. And it allows the site owner to manage and configure the Module. Without the Module, the Plugin could not function. 
 + 
 +A licensed LSCache Module is required in order to use the free LSCache Plugin. 
 +=====Does this plugin work in a clustered environment?​===== 
 + 
 +The cache entries are stored at the LiteSpeed server level. The simplest solution is to use LiteSpeed WebADC, as the cache entries will be stored at that level. 
 + 
 +If using another load balancer, the cache entries will only be stored at the backend nodes, not at the load balancer. 
 + 
 +The purges will also not be synchronized across the nodes, so this is not recommended. 
 + 
 +If a customized solution is required, please contact LiteSpeed Technologies at info@litespeedtech.com 
 + 
 +NOTICE: The rewrite rules created by this plugin must be copied to the Load Balancer. 
 + 
 +=====Where are the cached files stored?​===== 
 + 
 +The actual cached pages are stored and managed by LiteSpeed Servers. 
 + 
 +Nothing is stored within the WordPress file structure. 
 + 
 +=====Does LiteSpeed Cache for WordPress work with OpenLiteSpeed?​===== 
 + 
 +Yes it can work well with OpenLiteSpeed,​ although some features (such as ESI) may not be supported. Any setting changes that require modifying the .htaccess file will require a server restart. 
 + 
 +=====Is WooCommerce supported?​===== 
 + 
 +In short, yes. However, for some woocommerce themes, the cart may not be updated correctly. Please [[https://​blog.litespeedtech.com/​2017/​05/​31/​wpw-fixing-lscachewoocommerce-conflicts/​|see this blog post]] for a quick tutorial on how to detect this problem and fix it if necessary. 
 + 
 +=====My plugin has some pages that are not cacheable. How do I instruct the LiteSpeed Cache Plugin to not cache the page?​===== 
 + 
 +As of version 1.0.10, you may simply add ''​define('​LSCACHE_NO_CACHE',​ true);''​ sometime before the shutdown hook, and it should be recognized by the cache. 
 + 
 +Alternatively,​ you may use the function ''​xxxLiteSpeed_Cache_Tags::​set_noncacheable();''​ for earlier versions (1.0.7+). 
 + 
 +If using the function, make sure to check that the class exists prior to using the function. 
 + 
 +Please see [[litespeed_wiki:​cache:​lscwp:​api|this article]] for more information and to learn what else you can do to integrate your plugin with LSCWP. 
 + 
 +=====Are my images optimized?​===== 
 + 
 +Images are not optimized automatically,​ but if you'd like to have it done we provide an [[litespeed_wiki:​cache:​lscwp:​image-optimization | Image-Optimization]] function. Find it at **LiteSpeed Cache > Image Optimization**. 
 + 
 +===== How do I make a WP nonce cacheable in my third-party plugin? ===== 
 + 
 +Our API includes a function that uses ESI to "punch a hole" in a cached page for a nonce. This allows the nonce to be cached for 12 hours, regardless of the TTL of the page it is on. Learn more on [[litespeed_wiki:​cache:​lscwp:​api#​nonce_issues|our API wiki]]. 
 + 
 + 
 +=====How do I get WP-PostViews to display an updating view count?=====
  
 Use Use
Line 40: Line 108:
  
 Purge the cache to use the updated pages. Purge the cache to use the updated pages.
 +
 +=====How do I enable the crawler?​=====
 +
 +The crawler is disabled by default, and must be enabled by the server admin first.
 +
 +Once the crawler is enabled on the server side, navigate to **LiteSpeed Cache > Crawler** and set **Activation** to ''​Enable''​.
 +
 +For more detailed information about crawler setup, please see [[https://​blog.litespeedtech.com/​2017/​06/​14/​wpw-crawl-your-site-make-it-fly/​|our blog post]].
 +
 +===== Why are some settings tabs missing? =====
 +
 +LSCWP has a "Basic View" and an "​Advanced View." While in Basic View, you will see the following settings tabs: **General**,​ **Cache**, **Purge**, **Excludes**,​ and (optionally) **WooCommerce**. These are all that is necessary to manage the LiteSpeed Cache.
 +
 +Click on the ''​Advanced View''​ link at the top of the page, and several more tabs will be revealed: **Optimize**,​ **Tuning**, **Media**, **CDN**, **ESI**, **Advanced**,​ **Debug**, **Crawler**. These tabs contain more expert-level cache options as well as non-cache-related optimization functionality.
 +
 +
  
  • Admin
  • Last modified: 2020/11/14 15:37
  • by Lisa Clarke