added caches.listing_last_modified; db-changelog fixes

This commit is contained in:
following
2013-03-20 12:06:53 +01:00
parent d5ee4baef8
commit 085c13983f
13 changed files with 102 additions and 44 deletions

View File

@ -126,7 +126,7 @@
}
else
{
// fitler parameters
// filter parameters
$dModifiedsince = isset($_REQUEST['modifiedsince']) ? $_REQUEST['modifiedsince'] : '0';
// selections
@ -532,6 +532,11 @@ function outputXmlFile($sessionid, $filenr, $bXmlDecl, $bOcXmlTag, $bDocType, $z
fwrite($f, $t2 . '</attributes>' . "\n");
sql_free_result($rsAttributes);
// If additional waypoints are added here, last_modified date handling must be changed
// to include also max(last_modified) of all waypoints: either set caches.last_modified via
// coordinates trigger, or - better - check coordinates.last_modified when constructing
// xml session data.
fwrite($f, $t1 . '</cache>' . "\n");
}
mysql_free_result($rs);