31 mSettings( copy.mSettings )
33 if ( copy.mPluginsServerCaches )
39 mPluginsServerCaches.reset(
nullptr );
45 if ( copy.mPluginsServerCaches )
51 mPluginsServerCaches.reset(
nullptr );
58 mPluginsServerCaches.reset();
64 const QString key = getCacheKey( cache, accessControl, request );
72 QgsServerCacheFilterMap::const_iterator scIterator;
73 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
75 content = scIterator.value()->getCachedDocument( project, request, key );
76 if ( !content.isEmpty() )
81 if ( content.isEmpty() )
86 if ( !doc->setContent( content ) )
97 const QString key = getCacheKey( cache, accessControl, request );
104 QgsServerCacheFilterMap::const_iterator scIterator;
105 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
107 if ( scIterator.value()->setCachedDocument( doc, project, request, key ) )
118 const QString key = getCacheKey( cache, accessControl, request );
120 QgsServerCacheFilterMap::const_iterator scIterator;
121 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
123 if ( scIterator.value()->deleteCachedDocument( project, request, key ) )
133 QgsServerCacheFilterMap::const_iterator scIterator;
134 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
136 if ( scIterator.value()->deleteCachedDocuments( project ) )
147 const QString key = getCacheKey( cache, accessControl, request );
149 QgsServerCacheFilterMap::const_iterator scIterator;
150 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
152 QByteArray content = scIterator.value()->getCachedImage( project, request, key );
153 if ( !content.isEmpty() )
164 const QString key = getCacheKey( cache, accessControl, request );
166 QgsServerCacheFilterMap::const_iterator scIterator;
167 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
169 if ( scIterator.value()->setCachedImage( img, project, request, key ) )
180 const QString key = getCacheKey( cache, accessControl, request );
182 QgsServerCacheFilterMap::const_iterator scIterator;
183 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
185 if ( scIterator.value()->deleteCachedImage( project, request, key ) )
195 QgsServerCacheFilterMap::const_iterator scIterator;
196 for ( scIterator = mPluginsServerCaches->constBegin(); scIterator != mPluginsServerCaches->constEnd(); ++scIterator )
198 if ( scIterator.value()->deleteCachedImages( project ) )
208 mPluginsServerCaches->insert( priority, serverCache );
213 QStringList cacheKeyList;
223 return cacheKeyList.join(
'-' );