OLS doesn't respect CacheLookup

nfn

New Member
#1
Hi

In LS, I have CacheLookup on/off in .htaccess and it works as expected using X-LiteSpeed-Tag and X-LiteSpeed-Cache-Control, but OLS (1.7.19) ignores this directive.
I have enabled .htaccess "Auto Load from .htaccess" server level but there's no way OLS disable cache when "CacheLookup public off".

What am I doing wrong?
 

Cold-Egg

Administrator
#2
Hi,
For OpenLiteSpeed, it only recognizes the rewrite in the .htaccess file. To disable the public cache lookup, you can add a cache module to your virtual host and set checkPublicCache to 0 (0 means disable).
E.g.

Code:
checkPrivateCache   1
checkPublicCache    0
maxCacheObjSize     10000000
maxStaleAge         0
qsCache             1
reqCookieCache      1
respCookieCache     1
ignoreReqCacheCtrl  1
ignoreRespCacheCtrl 0

enableCache         0
expireInSeconds     3600
enablePrivateCache  0
privateExpireInSeconds 3600
 
Top