Cache module not caching all the time

#1
I installed openlitespeed.
added server configuration / modules the cache.
using this as config
enableCache 1
enablePrivateCache 1
checkPublicCache 1
checkPrivateCache 1
qsCache 1
reqCookieCache 1
ignoreReqCacheCtrl 1
ignoreRespCacheCtrl 0
respCookieCache 1
expireInSeconds 3600
privateExpireInSeconds 3600
maxStaleAge 200
maxCacheObjSize 10000000
storagepath cachedata
noCacheDomain
noCacheUrl
no-vary 0
addEtag 0

running WordPress with the litespeed cache plugin. but aprox every 4/5 click it doesnt serve the files from the cache?
i get in the header this
  1. x-litespeed-cache: miss
  2. x-litespeed-tag: 27a_WC_T.283,27a_WC_T.103,27a_tax,27a_URL.8ce1eaff2b9a55e12523d6033f242369,27a_T.283,27a_
  3. x-turbo-charged-by: LiteSpeed

the /usr/local/lsws/cachedata
/usr/local/lsws/cachedata/priv
and every sub dir has the www-data:www-data rights

the cacheman.lock and the cacheman.shm have the root:root rights

i am running the server with cloudflare. i excluded all cloudflare ip's like it is written from your wiki

i dont know what to do more to get the cache working proper?

regards,

Chris
 

David

Active Member
#2
If you are using lscache plugin, you should set the both enable*** to 0, as below,
enableCache 0
enablePrivateCache 0
Because the plugin will set to cache or not.
Code:
module cache {
    ls_enabled          1

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

    enableCache         0
    expireInSeconds     3600
    enablePrivateCache  0
    privateExpireInSeconds 3600

}
This is the default setting in the installation.
 
Top