partially reverted 1c6e320f: npa updates trigger okapi_syncbase update via needs_npa_recalc change
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user