Always update feed url to avoid useless redirections for future requests
This commit is contained in:
parent
f80878422d
commit
d236afeb74
@ -9,6 +9,7 @@ Version 1.2.0 (unreleased)
|
|||||||
* Remove automatic software update from the user interface
|
* Remove automatic software update from the user interface
|
||||||
* New API methods (not backward compatible)
|
* New API methods (not backward compatible)
|
||||||
* Fever API tokens are longer than before
|
* Fever API tokens are longer than before
|
||||||
|
* Always update feed URL to avoid useless redirections for futures requests
|
||||||
* Add support for Wallabag service
|
* Add support for Wallabag service
|
||||||
* Add unit tests
|
* Add unit tests
|
||||||
|
|
||||||
|
@ -113,9 +113,10 @@ function update_feed($user_id, $feed_id)
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
Model\Feed\update_feed($user_id, $feed_id, array(
|
Model\Feed\update_feed($user_id, $feed_id, array(
|
||||||
'etag' => $resource->getEtag(),
|
'feed_url' => $resource->getUrl(),
|
||||||
|
'etag' => $resource->getEtag(),
|
||||||
'last_modified' => $resource->getLastModified(),
|
'last_modified' => $resource->getLastModified(),
|
||||||
'last_checked' => time(),
|
'last_checked' => time(),
|
||||||
'parsing_error' => 0,
|
'parsing_error' => 0,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,6 @@ function write_debug_file() {
|
|||||||
if (DEBUG_MODE) {
|
if (DEBUG_MODE) {
|
||||||
$feed_logs = Logger::getMessages();
|
$feed_logs = Logger::getMessages();
|
||||||
$db_logs = Database::getInstance('db')->getLogMessages();
|
$db_logs = Database::getInstance('db')->getLogMessages();
|
||||||
file_put_contents(DEBUG_FILENAME, implode(PHP_EOL, array_merge($feed_logs, $db_logs)), FILE_APPEND|LOCK_EX);
|
file_put_contents(DEBUG_FILENAME, implode(PHP_EOL, $feed_logs + $db_logs), FILE_APPEND|LOCK_EX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user