Skip to content
Permalink
Browse files

fixed replicating listing_last_modified through XML interface

  • Loading branch information...
following5 committed Mar 18, 2016
1 parent 0b04889 commit 6ac0fd6eb50abd6acfaeee09cb9ab90a9da83d52
Showing with 12 additions and 3 deletions.
  1. +12 −3 htdocs/xml/ocxml11.php
@@ -777,10 +777,19 @@ function startXmlSession($sModifiedSince, $bCache, $bCachedesc, $bCachelog, $bUs
// ohne selection
if ($bCache == 1)
{
if ($ocxmlversion >= 15)
$wherefield = 'GREATEST(`last_modified`,`flags_last_modified`)';
else
if ($ocxmlversion >= 15) {
// Starting with version 15, we include the 'needs maintenance' and
// 'listing is outdated' flags in the <cache> records.
$wherefield = 'GREATEST(`listing_last_modified`,`flags_last_modified`)';
}
else if ($ocxmlversion == 14) {
// Starting with version 14, we include listing_last_modified in the
// <caches> records, so this date is relevant for updates
$wherefield = '`listing_last_modified`';
}
else {
$wherefield = '`last_modified`';
}
sql("INSERT INTO xmlsession_data (`session_id`, `object_type`, `object_id`)
SELECT &1, 2, `cache_id` FROM `caches` WHERE ".$wherefield." >= '&2' AND `status`!=5",
$sessionid,

0 comments on commit 6ac0fd6

Please sign in to comment.
You can’t perform that action at this time.