Skip to content

Commit 872cfb7

Browse files
committed
Have a capabilities cache per hostname
Actually if I get http://127.0.0.1/qgis?REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WFS then http://localhost/qgis?REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WFS the onlineResource will be wrong in the second request...
1 parent 1b06324 commit 872cfb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/qgswmsserver.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ void QgsWMSServer::executeRequest()
159159
{
160160
QStringList cacheKeyList;
161161
cacheKeyList << ( getProjectSettings ? "projectSettings" : version );
162+
cacheKeyList << getenv( "SERVER_NAME" );
162163
bool cache = true;
163164
#ifdef HAVE_SERVER_PYTHON_PLUGINS
164165
cache = mAccessControl->fillCacheKey( cacheKeyList );

0 commit comments

Comments
 (0)