Merhaba,
Sitemde litespeed cache kullanmak istiyorum aktif ediyorum çok iyi verim sağlıyorum tek bir eksisi izlenme sayıları vs Postviews çalışmıyor cache ayarlarında ise... bunu düzeltmek için bir makale var birşey anlamadım gerçekten....
Bu konuda yardımcı olabilecek var ise benim değil birçok kişinin sorunu çözülmüş olacaktır.
To make LiteSpeed Cache compatible with WP-PostViews:
1-) Replace the following calls in the active theme's template files with a div or span with a unique ID.
e.g. Replace
<?php if(function_exists('the_views' )) { the_views(); } ?>
with
<div id="postviews_lscwp" > </div>
2-) Update the ajax request to output the results to that div.
Example:
jQuery.ajax({
type:"GET",
url:viewsCacheL10n.admin_ajax_url,
data:"postviews_id="+viewsCacheL10n.post_id+"&acti on=postviews",
cache:!1,
success:function(data) {
if(data) {
jQuery('#postviews_lscwp').html(data+' views');
}
}
});
The ajax code can be found at
/wp-content/plugins/wp-postviews/postviews-cache.js
3-) After purging the cache, the view count should be updating.