mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Ajouts de quelques invalidateHttpCache
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user