Class: QgsConfigCache

class qgis.server.QgsConfigCache

Bases: PyQt5.QtCore.QObject

Cache for server configuration.

New in version 2.8: Enums

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.

Signals

Attributes

instance() → QgsConfigCache

Returns the current instance.

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 – the filename of the QGIS project

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 – The path of the project