cache only works for one virtual host

gdewey

Well-Known Member
#1
Hi, I have 2 virtual host on lsws enterprise server to host a read only php API.

the 2 of the have the EXACT same config (vh) But only one works. the 2 of them use the same cache path /dev/shm/lsdiskcache

<cache>
<storage>
<cacheStorePath>/dev/shm/lsdiskcache</cacheStorePath>
</storage>
<cachePolicy>
<enableCache>1</enableCache>
<maxCacheObjSize></maxCacheObjSize>
<expireInSeconds>30</expireInSeconds>
<maxStaleAge>10</maxStaleAge>
<qsCache>1</qsCache>
<reqCookieCache></reqCookieCache>
<respCookieCache></respCookieCache>
<ignoreReqCacheCtrl></ignoreReqCacheCtrl>
<ignoreRespCacheCtrl></ignoreRespCacheCtrl>
<enablePrivateCache></enablePrivateCache>
<privateExpireInSeconds></privateExpireInSeconds>
</cachePolicy>
</cache>

any idea why would one work and not the other?. I re-created the non working host with making it work..
 

NiteWave

Administrator
#2
while cache policy is same, querystring/cookie/request or response cache-control vary for different vhost.

so your case may be normal, not bug.

need more info to know if it's an issue or not.
 

gdewey

Well-Known Member
#3
ok understand what you are saying. each vh has the exact same config and only one works. what kind of information do you need to debug this? I created another 2 VH but only one works in the whole server.

thanks
 
Last edited:
Top