Wordpress LSCache issues

#1
Hello,

I have installed LiteSpeed and configured LSCache but tests show that the pages are not caching:

Code:
HTTP/1.1 200 OK
Date: Thu, 02 Feb 2017 20:13:45 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Set-Cookie: __cfduid=d5f9475fe339ddbcb0137e564378dd0fb1486066423; expires=Fri, 02-Feb-18 20:13:43 GMT; path=/; domain=.xxxxxxxxx.com; HttpOnly
Cf-Railgun: direct (starting new WAN connection)
Link: <https://lsws.xxxxxxxxx.com/wp-json/>; rel="https://api.w.org/"
Link: <https://lsws.xxxxxxxxx.com/>; rel=shortlink
Set-Cookie: wpml_referer_url=https%3A%2F%2Flsws.xxxxxxxxx.com%2F; expires=Fri, 03-Feb-2017 20:13:33 GMT; Max-Age=86400; path=/
Set-Cookie: _icl_current_language=en; expires=Fri, 03-Feb-2017 20:13:33 GMT; Max-Age=86400; path=/
Set-Cookie: _icl_current_language=en; expires=Fri, 03-Feb-2017 20:13:34 GMT; Max-Age=86400; path=/
X-Litespeed-Cache-Control: no-cache
X-Powered-By: PHP/7.0.15
X-Turbo-Charged-By: LiteSpeed
Strict-Transport-Security: max-age=315360000; includeSubDomains; preload
X-Content-Type-Options: nosniff
Server: cloudflare-nginx
CF-RAY: 32b04e2908c72914-OTP
My configuration is this:



P.S. Wordpress plugin is installed and enabled and Check Public Cache was not enabled in .htaccess because I set it to yes in the Admin area.

Can you please advise?

Also, I have a sign in & sign up section in the header that needs to be dynamic in order to allow users to login. Can you advise how I can do that?

Thank you!
 

KevinFwu

Administrator
Staff member
#3
Hi M.I.SA,

How did you get those response headers? From the browser? It may be because you are logged in. No-cache is a firm rule - that means something told the server not to cache the page. For example, being logged in.

As NiteWave mentioned, Enable Cache should be set to 'no'. The do-not-cache-url do not need to be there (you can uncheck 'cache login page' within wp admin cache settings for the login page; the wp-admin is never cached if enable cache is set to 'no')

Regarding your sign in and sign up, are you sure it needs to be dynamic? If it is a plugin, could you send me a link? Alternatively, you can pm me the link to your site and I will attempt to sign up to see what happens.

If it truly needs to be dynamic, the logic won't be available until our 1.1 release.

Cheers,
Kevin
 
#4
Hi Kevin, NiteWave,

Thank you for the replies. The header I provided was done from another server through curl so it was not logged in.
In the mean time I tried to follow the link that NiteWave provided but after following the Admin panel instructions(everyting with not set) and adding the below to htaccess the cache is not enabled:

<IfModule LiteSpeed>
CacheLookup public on
</IfModule>


I also set the following config, but cache does not seem to enable also:



Maybe I'm reading the cache instructions wrong. :-s

Kevin, sending PM with more details regarding the site.

Thank you!
 
Top