This is an old revision of the document!


LSCWP Frequently Asked Questions

Is the LiteSpeed Cache Plugin for WordPress free?

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 a LiteSpeed Web Server license with the LSCache module enabled.

Where are the cached files stored?

This plugin only instructs LiteSpeed Web Server on what pages to cache and when to purge. The actual cached pages are stored and managed by LiteSpeed Web Server. Nothing is stored on the PHP side.

Does LiteSpeed Cache for WordPress work with OpenLiteSpeed?

LiteSpeed Cache for WordPress currently only works for LiteSpeed Web Server enterprise edition, but there are plans to have OpenLiteSpeed support it later down the line.

Is WooCommerce supported?

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.

How do I get WP-PostViews to display an updating view count?

Use

<div id="postviews_lscwp"></div>

to replace

<?php if(function_exists('the_views')) { the_views(); } ?>

NOTE: The id can be changed, but the div id and the ajax function must match.

Replace the ajax query in wp-content/plugins/wp-postviews/postviews-cache.js with

jQuery.ajax({ type:"GET", url:viewsCacheL10n.admin_ajax_url,
     data:"postviews_id="+viewsCacheL10n.post_id+"&action=postviews",
     cache:!1, success:function(data) { 
     if(data) { jQuery('#postviews_lscwp').html(data+' views'); } } });

Purge the cache to use the updated pages.

  • Admin
  • Last modified: 2016/03/25 17:32
  • by Michael Alegre