3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
248 stars 141 forks source link

[Bug]: Pre-generated cache is not used in LWC 3.7.6 #4511

Open Oxsw1ng opened 3 weeks ago

Oxsw1ng commented 3 weeks ago

What's the bug ?

I know there's a similar issue right there : https://github.com/3liz/lizmap-web-client/issues/2053 but I'm reopening one since it didn't really helped for me.

I'm using LWC 3.7.6. I have pre-generated the server cache for each layer of my project using php /var/www/lizmap-web-client-3.7.6/lizmap/console.php wmts:cache:seed <repository> <project> <layer> <EPSG> <MINZOOM> <MAXZOOM> which work, because some files are created in the cache repository. The bug is that the cache files aren't used by Lizmap. It continues to use browser cache, but not the server cache.

Steps to reproduce the issue

  1. Do the basic install of Lizmap Web Client for Linux
  2. Declare a cache repository in the administration panel
  3. Use the command php /var/www/lizmap-web-client-3.7.6/lizmap/console.php wmts:capabilities <repository> <project>
  4. Generate the cache for each layer using php /var/www/lizmap-web-client-3.7.6/lizmap/console.php wmts:cache:seed <repository> <project> <layer> <EPSG> <MINZOOM> <MAXZOOM>
  5. Enter the project for which you generated the cache
  6. Realize that the cache isn't used

Versions, safeguards, check summary etc

Check Lizmap plugin

Operating system

Debian 12

Browsers

Firefox

Browsers version

Firefox 126

Relevant log output

No response

gioman commented 2 weeks ago

@Oxsw1ng this adds up to my ticket https://github.com/3liz/lizmap-web-client/issues/3696 where I placed a few observations on caching along time, but that didn't get much attention.