Add TTL to control feed freshness

https://github.com/marienfressinaud/FreshRSS/issues/250
This commit is contained in:
Alexandre Alapetite
2014-07-06 00:09:31 +02:00
parent b48dc25963
commit bc8eb560af
12 changed files with 150 additions and 81 deletions

View File

@@ -8,7 +8,7 @@ class FreshRSS_javascript_Controller extends Minz_ActionController {
public function actualizeAction () {
header('Content-Type: text/javascript; charset=UTF-8');
$feedDAO = FreshRSS_Factory::createFeedDao();
$this->view->feeds = $feedDAO->listFeedsOrderUpdate();
$this->view->feeds = $feedDAO->listFeedsOrderUpdate($this->view->conf->ttl_default);
}
public function nbUnreadsPerFeedAction() {