From 2d17054d766746456faf769c920c8674b5afc4e5 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 9 Apr 2016 18:23:00 +0200 Subject: add last modified fields for feed and folder and move etag and lastmodified to http_etag and http_last_modified columns --- service/feedservice.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'service') diff --git a/service/feedservice.php b/service/feedservice.php index 19c0a3b4b..88087a874 100644 --- a/service/feedservice.php +++ b/service/feedservice.php @@ -204,8 +204,8 @@ class FeedService extends Service { list($fetchedFeed, $items) = $this->feedFetcher->fetch( $location, false, - $existingFeed->getLastModified(), - $existingFeed->getEtag(), + $existingFeed->getHttpLastModified(), + $existingFeed->getHttpEtag(), $existingFeed->getFullTextEnabled(), $existingFeed->getBasicAuthUser(), $existingFeed->getBasicAuthPassword() @@ -228,8 +228,9 @@ class FeedService extends Service { $existingFeed->setArticlesPerUpdate($itemCount); } - $existingFeed->setLastModified($fetchedFeed->getLastModified()); - $existingFeed->setEtag($fetchedFeed->getEtag()); + $existingFeed->setHttpLastModified( + $fetchedFeed->getHttpLastModified()); + $existingFeed->setHttpEtag($fetchedFeed->getHttpEtag()); $existingFeed->setLocation($fetchedFeed->getLocation()); // insert items in reverse order because the first one is @@ -442,8 +443,8 @@ class FeedService extends Service { // special feed updates if (array_key_exists('fullTextEnabled', $diff)) { // disable caching for the next update - $feed->setEtag(''); - $feed->setLastModified(0); + $feed->setHttpEtag(''); + $feed->setHttpLastModified(0); $this->feedMapper->update($feed); return $this->update($feedId, $userId, true); } -- cgit v1.2.3