LiteSpeed Cache for XF2 - Community

LiteSpeed Cache for XF2 - Community 2.3.0

No permission to download
One more update - it appears the built-in cleanup ran last night for the first time at midnight. Maybe it only runs once per week?

An option to directly control the frequency of this cleanup would be great.
 
Litespeed is CRAZY :eek:

Pushed the server to 10,000 users and it's like everything is chill :ROFLMAO:

I set the cache age to 10sec which slightly degrades the performance (response times a few ms slower ) because at 120, the new posts won't show up. But it works fine so far in my testing
 
Is this the line you're talking about to set cache:

Code:
RewriteRule .* - [E=Cache-Control:max-age=600,E="cache-vary:xf_style_id,xf_language_id"]

I assume the 600 is in seconds so my cache is 10 minutes if I'm reading this right.

Sorry for the dumb question but the site seems to run fine. How would I know I'm losing a few ms here or there based on cache value?
 
Is this the line you're talking about to set cache:

Code:
RewriteRule .* - [E=Cache-Control:max-age=600,E="cache-vary:xf_style_id,xf_language_id"]

I assume the 600 is in seconds so my cache is 10 minutes if I'm reading this right.

Sorry for the dumb question but the site seems to run fine. How would I know I'm losing a few ms here or there based on cache value?

Oh, you won't notice a difference. I was running benchmarking tests with a ridiculous thousands of connections per second (which i doubt many of us will ever experience lol) and with cache refreshing in a few seconds was noticeable because that meant database was hit a few times rather than the cache when it expired.

I should have clarified. It was just a benchmarking test seeing how far i can push the server with the cache and at that level, i couldn't have pushed it that far without cache so age mattered.

Under normal use, i can't even tell if i am hitting cache or not and set the cache age small because i want guests to view new content as soon as i post. To be honest, even without the cache my site is fast because it's not really popular and the server is overkill lol.
 
Last edited:
I don't really know if the cache is working properly on my website.

During the guest's visit the litespeed cache does not appear anywhere, in the registered user's version it appears as disabled?
Is this correct?

Guest access:

Captura de pantalla 2020-06-20 a las 11.29.33.webp

Registered User:

Captura de pantalla 2020-06-20 a las 11.30.32.webp
 
Questions to developer!

This works with cloudflare?
This works with Litespeed and OpenLiteSpeed? And what is the differences between them?


Regards
 
Questions to developer!

This works with cloudflare?
This works with Litespeed and OpenLiteSpeed? And what is the differences between them?


Regards
Yup, it should work with cloudflare and voth LiteSpeed Enterprise and OpenLiteSpeed just fine. So long as the request headers are set and sent to the server as expected it will take care of the rest.

The main difference between OpenLiteSpeed and Enterprise servers is that Enterprise is capable of reading Apache configuration files directly (acting as a drop-in Apache replacement) while OpenLiteSpeed has it's own custom configuration and must be restarted before any .htaccess changes will take affect (Immediate in Enterprise).


yes, I have the htaccess set up as it appears on the litespeed website
Hmm that should be all you need to get going -- the .htaccess rules do a lot of the work in the case of this plugin. Are you using OpenLiteSpeed? Have you tried restarting the server and checking again?

I attempted to visit the site in your "about me" thinking that it could be the affected site but I had trouble connecting at all.

Regards,
-Michael
 
Yup, it should work with cloudflare and voth LiteSpeed Enterprise and OpenLiteSpeed just fine. So long as the request headers are set and sent to the server as expected it will take care of the rest.

The main difference between OpenLiteSpeed and Enterprise servers is that Enterprise is capable of reading Apache configuration files directly (acting as a drop-in Apache replacement) while OpenLiteSpeed has it's own custom configuration and must be restarted before any .htaccess changes will take affect (Immediate in Enterprise).



Hmm that should be all you need to get going -- the .htaccess rules do a lot of the work in the case of this plugin. Are you using OpenLiteSpeed? Have you tried restarting the server and checking again?

I attempted to visit the site in your "about me" thinking that it could be the affected site but I had trouble connecting at all.

Regards,
-Michael
the affected website is https://cloudbit.es/foro

I think I've tried a lot of things but nothing works.
I'm using cloudflare, maybe it has something to do with it?
 
Yup, it should work with cloudflare and voth LiteSpeed Enterprise and OpenLiteSpeed just fine. So long as the request headers are set and sent to the server as expected it will take care of the rest.

The main difference between OpenLiteSpeed and Enterprise servers is that Enterprise is capable of reading Apache configuration files directly (acting as a drop-in Apache replacement) while OpenLiteSpeed has it's own custom configuration and must be restarted before any .htaccess changes will take affect (Immediate in Enterprise).


Regards,
-Michael
Thanks, i will wait with confirmation that works with cloudflare.

In your opinion LiteSpeed Enterprise is best?
Do have any support installation fee, if yes its by the hour, where i can fuind prices?
 
Feature request, please.
Displays page as a guest if user is logged in, and cookie isn't present (and sets it again), so that a user can't remove it and cache the page as if they were a guest (while still logged in).
 
Top Bottom