Added port to key when cache.use.host.domain.in.key property is set. (HTTP/HTTPS handling)

This commit is contained in:
Erik C. Thauvin 2017-05-21 01:22:45 -07:00
parent f7867c1a47
commit e7ebe1718a

View file

@ -8,18 +8,15 @@ import com.opensymphony.oscache.base.*;
import com.opensymphony.oscache.base.events.ScopeEvent;
import com.opensymphony.oscache.base.events.ScopeEventListener;
import com.opensymphony.oscache.base.events.ScopeEventType;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.Serializable;
import java.util.*;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.PageContext;
import java.io.Serializable;
import java.util.*;
/**
* A ServletCacheAdministrator creates, flushes and administers the cache.
@ -549,7 +546,7 @@ public class ServletCacheAdministrator extends AbstractCacheAdministrator implem
// Servers for multiple host domains need this distinction in the key
if (useHostDomainInKey) {
cBuffer.append(FILE_SEPARATOR).append(request.getServerName());
cBuffer.append(FILE_SEPARATOR).append(request.getServerName()).append(":").append(request.getServerPort());
}
if (key != null) {