summaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-09 18:23:00 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-09 18:23:19 +0200
commit2d17054d766746456faf769c920c8674b5afc4e5 (patch)
tree47f729c3510d771a16d08c0fccaa4e75625e189a /service
parent78fee82a8447855ba549f4a0e52ddf0a1f1ab2be (diff)
add last modified fields for feed and folder and move etag and lastmodified to http_etag and http_last_modified columns
Diffstat (limited to 'service')
-rw-r--r--service/feedservice.php13
1 files changed, 7 insertions, 6 deletions
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);
}