Hi,
New to OLS, trying to see if I can figure out why I can't get LiteSpeed Cache to work with the Mediawiki plugin on an MW 1.31 install -- it feels like it's most of the way there, but I seem to be missing something.
check.lscache.io tells me that LSCache is supported, and I see headers like this:
So, it reports a miss, no matter how often I reload. But I've checked the lscache directory, and it seems to be storing cached copies in a priv directory... but never pub (public?), for some reason, which may be why it's not returning hits. I'm very confused by it.
Here is my cache module setup on the server:
And here on the virtual host with the domain where the wiki is installed:
And here is the basic htaccess I have in the root of the wiki directory, which is what you're instructed to have:
I do have the extension set to enable the cache and to cache for logged-in users as well.
Anyone have experience with this extension and why it may be acting so oddly? Thanks!
New to OLS, trying to see if I can figure out why I can't get LiteSpeed Cache to work with the Mediawiki plugin on an MW 1.31 install -- it feels like it's most of the way there, but I seem to be missing something.
check.lscache.io tells me that LSCache is supported, and I see headers like this:
HTTP/1.1 200 OK
x-powered-by: PHP/7.4.33
x-content-type-options: nosniff
pragma: no-cache
[B]x-litespeed-cache-control: public,max-age=864020[/B]
x-litespeed-tag: ...
content-type: text/html; charset=UTF-8
content-language: en
x-ua-compatible: IE=Edge
vary: Accept-Encoding, Cookie
last-modified: Sat, 27 Jan 2024 22:07:45 GMT
expires: Thu, 01 Jan 1970 00:00:00 GMT
cache-control: private, max-age=0, s-maxage=300
[B]x-litespeed-cache: miss[/B]
content-encoding: gzip
So, it reports a miss, no matter how often I reload. But I've checked the lscache directory, and it seems to be storing cached copies in a priv directory... but never pub (public?), for some reason, which may be why it's not returning hits. I'm very confused by it.
Here is my cache module setup on the server:
storagePath $SERVER_ROOT/cachedata
checkPrivateCache 0
checkPublicCache 1
maxCacheObjSize 10000000
maxStaleAge 200
qsCache 1
reqCookieCache 1
respCookieCache 1
ignoreReqCacheCtrl 1
ignoreRespCacheCtrl 1
enableCache 0
expireInSeconds 3600
enablePrivateCache 0
privateExpireInSeconds 3600
And here on the virtual host with the domain where the wiki is installed:
storagePath $VH_ROOT/lscache
CacheEngine on
CacheLookup on
CacheIgnoreCacheControl On
checkPrivateCache 1
checkPublicCache 1
maxCacheObjSize 10000000
maxStaleAge 200
qsCache 0
ignoreReqCacheCtrl 1
ignoreRespCacheCtrl 1
enableCache 1
expireInSeconds 3600
enablePrivateCache 1
privateExpireInSeconds 3600
And here is the basic htaccess I have in the root of the wiki directory, which is what you're instructed to have:
<IfModule LiteSpeed>
CacheLookup on
</ifModule>
I do have the extension set to enable the cache and to cache for logged-in users as well.
Anyone have experience with this extension and why it may be acting so oddly? Thanks!