Project: QGIS

Version: 3.26

Feature: Alternate periodic check strategy for detecting project updates

QGIS Server now provides an alternate lastModified() strategy for invalidating the internal project cache, addressing concerns about the ability of QGIS server to invalidate the cache when a project file is updated on atypical file systems, such as NFS, or when the project file is stored in a database system like PostgreSQL.

An asynchronous periodic check strategy using the last modified value of a project is now provided for checking project configuration for changes.

The QGIS_SERVER_PROJECT_CACHE_STRATEGY environment variable may be used to configure the server caching strategy using the following values:

  • periodic for the alternative strategy
  • filesystem to use the file system watcher strategy
  • off to disable internal caching completely.

QGIS_SERVER_PROJECT_CACHE_CHECK_INTERVAL is used for controlling the periodic strategy interval.

The QFileSystemWatcher strategy remains the default configuration.

This feature was funded by 3Liz

This feature was developed by David Marteau