A free, self-hostable news aggregator…
Ajouts de quelques invalidateHttpCache
Alexandre Alapetite132e1883e468
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.phpindex 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éstry {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.phpindex 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)