LSCache dont work with J4.15 and OLD 1.7.16 ?

#23
Here my default configuration, maybe some thing is missing !?

Code:
#
# PLAIN TEXT CONFIGURATION FILE
#
#It not set, will use host name as serverName
serverName               
httpdWorkers              2
user                      runcloud-www
group                     runcloud-www
priority                  0
autoRestart               1
chrootPath                /
enableChroot              0
inMemBufSize              60M
swappingDir               /tmp/lsws-rc/swap
autoFix503                1
gracefulRestartTimeout    300
mime                      conf/mime.properties
showVersionNumber         0
adminEmails               root@localhost
indexFiles                index.html, index.php
disableWebAdmin           0
enableLVE                 0
autoLoadHtaccess          1

listener http {
  address                 [*]:80
  secure                  0
  map                     default *
}

listener https {
  address                 [*]:443
  secure                  1
  keyFile                 /usr/local/lsws/conf/cert/server.key
  certFile                /usr/local/lsws/conf/cert/server.crt
  certChain               1
  sslProtocol             30
  map                     default *
}

errorlog logs/error.log {
  logLevel                ERROR
  debugLevel              0
  rollingSize             10M
  enableStderrLog         0
}

accesslog logs/access.log {
  logReferer              1
  logUserAgent            1
  logFormat               %a %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"
  logHeaders              5
  rollingSize             10M
  keepDays                30
  compressArchive         0
}

expires  {
  enableExpires           1
  expiresByType           image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800
}

tuning  {
  maxConnections          10000
  maxSSLConnections       10000
  connTimeout             300
  maxKeepAliveReq         10000
  keepAliveTimeout        5
  sndBufSize              0
  rcvBufSize              0
  maxReqURLLen            32768
  maxReqHeaderSize        65536
  maxReqBodySize          2047M
  maxDynRespHeaderSize    32768
  maxDynRespSize          2047M
  maxCachedFileSize       4096
  totalInMemCacheSize     20M
  maxMMapFileSize         256K
  totalMMapCacheSize      40M
  useSendfile             1
  fileETag                28
  enableGzipCompress      1
  compressibleTypes       default
  enableDynGzipCompress   1
  gzipCompressLevel       6
  gzipAutoUpdateStatic    1
  gzipStaticCompressLevel 6
  brStaticCompressLevel   6
  gzipMaxFileSize         10M
  gzipMinFileSize         300

  quicEnable              1
  quicShmDir              /dev/shm
}

fileAccessControl  {
  followSymbolLink        1
  checkSymbolLink         0
  requiredPermissionMask  000
  restrictedPermissionMask 000
}

perClientConnLimit  {
  staticReqPerSec         0
  dynReqPerSec            0
  outBandwidth            0
  inBandwidth             0
  softLimit               10000
  hardLimit               10000
  gracePeriod             15
  banPeriod               300
}

CGIRLimit  {
  maxCGIInstances         20
  minUID                  11
  minGID                  10
  priority                0
  CPUSoftLimit            10
  CPUHardLimit            50
  memSoftLimit            1460M
  memHardLimit            1470M
  procSoftLimit           400
  procHardLimit           450
}

accessDenyDir  {
  dir                     /
  dir                     /etc/*
  dir                     /dev/*
  dir                     conf/*
  dir                     admin/conf/*
}

accessControl  {
  allow                   ALL
}

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
}

include /etc/lsws-rc/default.d/*.conf
include /etc/lsws-rc/conf.d/*.conf
 

serpent_driver

Well-Known Member
#24
Last try:

Create a blank PHP file in the root where Joomla is installed, copy the code in this file, request it in browser and check response headers.

Code:
<?php
header('X-LiteSpeed-Cache-Control: max-age=60');
With this test you should see x-litespeed-cache header: miss or hit. If there is no such header, please visit OLS Forum. This forum is for LiteSpeed Enterprise only.
 
#25
Last try:

Create a blank PHP file in the root where Joomla is installed, copy the code in this file, request it in browser and check response headers.

Code:
<?php
header('X-LiteSpeed-Cache-Control: max-age=60');
With this test you should see x-litespeed-cache header: miss or hit. If there is no such header, please visit OLS Forum. This forum is for LiteSpeed Enterprise only.
I get this :
server: LiteSpeed x-litespeed-cache: miss

When i put this file address into https://check.lscache.io/ i get (bingo) LSCache is supported
but if i tape only main domain url then unsuported !
 

AndreyPopov

Well-Known Member
#28
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
}
may be
enableCache 0
must be 1 ?!?!?!!?!?!?
 
Top