aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-31 15:21:39 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-31 15:21:39 +0100
commit132e1883e4682ae8f873bbeb420f81f51a4e274f (patch)
tree1614cbe48dfcca73367b9a1f83f636e7dc333e30 /app/Controllers
parent5c9a32329ad68dc5ae8bc8a3566a0d603b80a934 (diff)
Ajouts de quelques invalidateHttpCache
Diffstat (limited to 'app/Controllers')
-rwxr-xr-xapp/Controllers/configureController.php7
-rw-r--r--app/Controllers/usersController.php5
2 files changed, 12 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 17abf6b89..0e4801a2d 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -50,6 +50,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$catDAO->addCategory ($values);
}
}
+ invalidateHttpCache();
$notif = array (
'type' => 'good',
@@ -124,6 +125,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
'content' => Minz_Translate::t ('error_occurred_update')
);
}
+ invalidateHttpCache();
Minz_Session::_param ('notification', $notif);
Minz_Request::forward (array ('c' => 'configure', 'a' => 'feed', 'params' => array ('id' => $id)), true);
@@ -168,6 +170,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
Minz_Session::_param ('language', $this->view->conf->language);
Minz_Translate::reset ();
+ invalidateHttpCache();
$notif = array (
'type' => 'good',
@@ -196,6 +199,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
'print' => Minz_Request::param ('print', false),
));
$this->view->conf->save();
+ invalidateHttpCache();
$notif = array (
'type' => 'good',
@@ -235,6 +239,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$this->view->categories = $list;
} elseif ($this->view->req == 'import' && Minz_Request::isPost ()) {
if ($_FILES['file']['error'] == 0) {
+ invalidateHttpCache();
// on parse le fichier OPML pour récupérer les catégories et les flux associés
try {
list ($categories, $feeds) = opml_import (
@@ -295,6 +300,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$this->view->conf->_shortcuts ($shortcuts_ok);
$this->view->conf->save();
+ invalidateHttpCache();
$notif = array (
'type' => 'good',
@@ -320,6 +326,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$this->view->conf->_old_entries($old);
$this->view->conf->_keep_history_default($keepHistoryDefault);
$this->view->conf->save();
+ invalidateHttpCache();
$notif = array(
'type' => 'good',
diff --git a/app/Controllers/usersController.php b/app/Controllers/usersController.php
index 5b3ffe81a..0ce3b3447 100644
--- a/app/Controllers/usersController.php
+++ b/app/Controllers/usersController.php
@@ -25,6 +25,7 @@ class FreshRSS_users_Controller extends Minz_ActionController {
@unlink($personaFile);
$ok &= (file_put_contents($personaFile, Minz_Session::param('currentUser', '_')) !== false);
}
+ invalidateHttpCache();
//TODO: use $ok
$notif = array(
@@ -54,6 +55,7 @@ class FreshRSS_users_Controller extends Minz_ActionController {
Minz_Configuration::_authType($auth_type);
$ok &= Minz_Configuration::writeFile();
}
+ invalidateHttpCache();
$notif = array(
'type' => $ok ? 'good' : 'bad',
@@ -106,6 +108,7 @@ class FreshRSS_users_Controller extends Minz_ActionController {
$userDAO = new FreshRSS_UserDAO();
$ok &= $userDAO->createUser($new_user_name);
}
+ invalidateHttpCache();
$notif = array(
'type' => $ok ? 'good' : 'bad',
@@ -136,6 +139,8 @@ class FreshRSS_users_Controller extends Minz_ActionController {
$ok &= unlink($configPath);
//TODO: delete Persona file
}
+ invalidateHttpCache();
+
$notif = array(
'type' => $ok ? 'good' : 'bad',
'content' => Minz_Translate::t($ok ? 'user_deleted' : 'error_occurred', $username)