aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-12 18:41:31 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-12 18:41:31 +0100
commit14342603a05b64294762c45798debe3a66db26eb (patch)
tree39b317aa8e472e0cfa41bb4f96bb66111dcf9d46 /app/controllers/configureController.php
parent58cb842966f437a44f58644439f513b94f9dccac (diff)
Suppression de requêtes de catégorie et de flux
* Suppression de requêtes inutiles en utilisant mieux les données déjà reçues. * Change la signature de `CategoryDAO->listCategories ($prePopulateFeeds = true, $details = false)` pour ne pas charger de détails inutiles pour la vue principale (comme feed.description, feed.url...). * C'est la requête la plus importante. Suite de https://github.com/marienfressinaud/FreshRSS/pull/180
Diffstat (limited to 'app/controllers/configureController.php')
-rwxr-xr-xapp/controllers/configureController.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php
index 4c1930d31..e9e049f98 100755
--- a/app/controllers/configureController.php
+++ b/app/controllers/configureController.php
@@ -84,7 +84,7 @@ class configureController extends ActionController {
$this->view->flux = false;
if ($id != false) {
- $this->view->flux = $feedDAO->searchById ($id);
+ $this->view->flux = $this->view->feeds[$id];
if (!$this->view->flux) {
Error::error (
@@ -92,9 +92,6 @@ class configureController extends ActionController {
array ('error' => array (Translate::t ('page_not_found')))
);
} else {
- $catDAO = new CategoryDAO ();
- $this->view->categories = $catDAO->listCategories (false);
-
if (Request::isPost () && $this->view->flux) {
$name = Request::param ('name', '');
$hist = Request::param ('keep_history', 'no');