From 5367d977f73779a73a4502fa028e1bbfa5f319e2 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 4 Apr 2019 08:11:50 +0200 Subject: [PATCH] document incremental stuck fix bug --- doc/stuck.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 doc/stuck.md diff --git a/doc/stuck.md b/doc/stuck.md new file mode 100644 index 0000000..72420e3 --- /dev/null +++ b/doc/stuck.md @@ -0,0 +1,34 @@ + +# Stuck incremental rendering + +In case the incremental rendering is stuck (a bug between 1.0.1 and 2.0.0) +NOTE: this is for the mapserver database, NOT the map database! + +## Sqlite + +Execute this command in the sqlite database (`sqlite3 ./mapserver.sqlite`) + +``` +update settings +set value = strftime('%s', 'now') +where key = 'last_mtime'; +``` + +This will reset the current rendering time to now + +## Postgres + +For postgresql: + +Enter the shell (for example): +``` +psql -U postgres +``` + +And reset the current mtime +``` +update settings +set value = floor(EXTRACT(EPOCH from now()) * 1000) +where key = 'last_mtime'; +``` +