Skip to content

Commit

Permalink
Have a capabilities cache per hostname
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
sbrunner committed May 29, 2016
1 parent 1b06324 commit 872cfb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/qgswmsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ void QgsWMSServer::executeRequest()
{
QStringList cacheKeyList;
cacheKeyList << ( getProjectSettings ? "projectSettings" : version );
cacheKeyList << getenv( "SERVER_NAME" );
bool cache = true;
#ifdef HAVE_SERVER_PYTHON_PLUGINS
cache = mAccessControl->fillCacheKey( cacheKeyList );
Expand Down

0 comments on commit 872cfb7

Please sign in to comment.