LSCache cache and this plugin compatibility
-
Hi there!
Can I use this plugin together with LSCache cache as long as Fallback cache is enabled?
I’m on Litespeed server so LSCache cache is always recommended to use in my case. Is there way to integrate these two? I’m also using Cloudflare.Thanks.
-
Hi @maxgorky,
If you check the FAQ tab inside the plugin settings you will see that you can use Litespeed cache with this plugin but you need to disable the page caching option from Litespeed cache. The page caching in every way should be handled by this plugin only. Other plugins can do other optimizations like static file optimizations.This plugin will provide page caching at both CDN level as well as disk level (fallback cache). You just need to disable the page caching option from Litespeed cache.
If you disable the fallback cache inside this plugin and choose to use Litespeed cache for disk-level caching, it might cause issues as this plugin will clear cache in a much-advanced level for example when you update an article it purges the cache of that article along with the related pages where that article might show up.
Hi @isaumya
Are you talking about disabling Cache option in LSCache or is it something more specific? I can only see Enable Cache in LSCache, not Page Caching.
Thanks.
Hi @maxgorky,
Yes, I am talking about disabling the cache in Litespeed Cache, as this plugin will handle your page caching. You can use other plugins like Autoptimize, SHortpixel for your static files (e.g. Css, JS, Images) optimization.Hey @isaumya
I really don’t get it. Everyone recommends using LSCache caching if on Litespeed server. How can you counter this?
Thanks.
Hi @maxgorky,
The Litespeed cache will only provide disk-level caching while this plugin will provide both disk & CDN level caching.Moreover, if you want, you can try keeping the Litespeed cache plugin active and then use this plugin (make sure fallback cache is disabled as LScache is active) and see how it works.
Hi @isaumya,
So I disabled Fallback cache in your plugin and caching is enabled in LSCache + object cache memcached + crawler.
I don’t see any issues at the moment. Is there something I should be looking into to find issues?Checking response headers, that’s what I see:
cf-cache-status: HIT
Server: Cloudflare
x-litespeed-cache: HIT
x-wp-cf-super-cache: cacheDoes this mean WP Cloudflare Super Page Cache does its job in CDN caching and LSCache is disk caching? Is this a perfect combo?
Update.
x-litespeed-cache: missHi @maxgorky,
I don’t see any issues at the moment.
– Thanks good.
Does this mean WP Cloudflare Super Page Cache does its job in CDN caching and LSCache is disk caching?
– Yes it means that the plugin is working perfectly and caching the paged on Cloudflare CDN.
Is this a perfect combo?
– In my opinion No. As it’s better to let one plugin handle page caching but if this solution is giving you a better result you can use that.
Update.
x-litespeed-cache: miss– It’s quite common. Let’s say you clear your cache. Now there is no cache in Litespeed & in CF CDN. Now when the 1st request is received by CF, it caches that page for future responses.
So, when you visit that page for the second time you see it is HIT at CF CDN but miss in Litespeed cause when CF cached the page at the time of receiving the first request the response header was MISS for the Litespeed cache. After that both CF & Litespeed cached them but you kept seeing MISS cause now the content is being served from CF CDN and not from your server which what it has cached.
Now if you temporarily enable development mode in Cloudflare you will see Litespeed cache as HIT as this time the request is being served by your server and not CF CDN.
If I may add, LiteSpeed plugin provides server-level caching not application-level caching.
So speaking about disk level caching,
will your plugin cache html files in WP files directory ?
if yes, then it is not server level, it is application level = a huge differenceHi @cleverschooling,
will your plugin cache html files in WP files directory ?
– What? There is no WP Files directory. Are you talking about
/wp-content/uploads/? Moreover, I never said it is a server-level caching system, I said it does disk-caching + CF CDN caching. I don’t really see a huge difference as you mention in our hundreds of actual sites.About using LS Cache, please check my reply here: https://wordpress.org/support/topic/this-plugin-recommends-turn-litespeed-cache-plugin-to-off-so-need-the-latter/#post-14157539
The topic ‘LSCache cache and this plugin compatibility’ is closed to new replies.