QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Cache for server configuration. More...
#include <qgsconfigcache.h>
Public Member Functions | |
const QgsProject * | project (const QString &path, QgsServerSettings *settings=nullptr) |
If the project is not cached yet, then the project is read from the path. More... | |
void | removeEntry (const QString &path) |
Removes an entry from cache. More... | |
Static Public Member Functions | |
static QgsConfigCache * | instance () |
Returns the current instance. More... | |
|
static |
Returns the current instance.
Definition at line 26 of file qgsconfigcache.cpp.
const QgsProject * QgsConfigCache::project | ( | const QString & | path, |
QgsServerSettings * | settings = nullptr |
||
) |
If the project is not cached yet, then the project is read from the path.
If the project is not available, then nullptr
is returned. If the project contains any bad layer it is considered unavailable unless the server configuration variable QGIS_SERVER_IGNORE_BAD_LAYERS passed in the optional settings argument is set to true
(the default value is false
).
path | the filename of the QGIS project |
settings | QGIS server settings |
nullptr
if an error happened Definition at line 42 of file qgsconfigcache.cpp.
void QgsConfigCache::removeEntry | ( | const QString & | path | ) |
Removes an entry from cache.
path | The path of the project |
Definition at line 169 of file qgsconfigcache.cpp.