diff --git a/htdocs/doc/sql/modification-dates.txt b/htdocs/doc/sql/modification-dates.txt index 7ac0740a..6fdeccbc 100644 --- a/htdocs/doc/sql/modification-dates.txt +++ b/htdocs/doc/sql/modification-dates.txt @@ -47,10 +47,10 @@ okapi_syncbase meta_last_modified Is updated if any data changes which is output by OKAPI's geocache method but - not part of the cache listing itself. This currently applies to geokrets in - the cache (gk_item_waypoint table) and to log and recommendation statistics - (stat_caches table), and to the Cronjob-generated information in cache_location - and cache_npa_areas tables. Things like caches.wp_gc_maintained may be added. + does not update any other fields of the caches table. This currently applies + to geokrets in the cache (gk_item_waypoint table), to log and recommendation + statistics (stat_caches table), and to the Cronjob-generated cache_location + information. Things like caches.wp_gc_maintained may be added. Updating this field triggers an update of okapi_syncbase. We don't update okapi_syncbase directly, as it may be missing because OKAPI is not installed. diff --git a/htdocs/doc/sql/stored-proc/maintain-current.inc.php b/htdocs/doc/sql/stored-proc/maintain-current.inc.php index bc3f29a7..5b3c1862 100644 --- a/htdocs/doc/sql/stored-proc/maintain-current.inc.php +++ b/htdocs/doc/sql/stored-proc/maintain-current.inc.php @@ -876,9 +876,6 @@ OLD.`latitude`!=NEW.`latitude` THEN SET NEW.`need_npa_recalc`=1; END IF; - IF OLD.`need_npa_recalc` AND NOT NEW.`need_npa_recalc` THEN - SET NEW.`meta_last_modified` = NOW(); - END IF; IF OLD.`status`=5 AND NEW.`status`<>5 THEN SET NEW.`date_created`=NOW();