Class: QgsConfigCache

class qgis.server.QgsConfigCache

Bases: PyQt5.QtCore.QObject

Cache for server configuration.

Methods

instance

Returns the current instance.

project

If the project is not cached yet, then the project is read thanks to the path.

removeEntry

Removes an entry from cache.

instance() → QgsConfigCache

Returns the current instance.

Return type

QgsConfigCache

project(self, path: str) → QgsProject

If the project is not cached yet, then the project is read thanks to the path. If the project is not available, then None is returned.

Parameters

path (str) – the filename of the QGIS project

Return type

QgsProject

Returns

the project or None if an error happened

New in version 3.0.

removeEntry(self, path: str)

Removes an entry from cache.

Parameters

path (str) – The path of the project