Skip to content

7. Cache Management

Uroš Preložnik edited this page Mar 16, 2020 · 4 revisions

Specific request to QGIS Server can be cached on server side to improve performance and to reduce requests directly to QGIS Server.

This caching is not related to internal caching of QGIS Server!

Cache management is disabled by default and can be enabled by setting this variable to TRUE in settings.php

Caching is done in qgisproxy.php with use of external library PhPFastCache. Default configuration uses file storage, but this can be configured to use other methods (memory, database cache,...).

Cached requests

  • GetProjectSettings
  • GetLegendGraphics (vector layers only, raster layers simply use default legend image)

Cache invalidation

When you make changes to the project (add layers, change style,..) every logged in user must simply log out and log back in to update new settings from QGIS project.

To display current cached contents use this link - http://your-server/gisapp/admin/cache.php. You can manually clear all cache or single key.

Clone this wiki locally