diff options
| author | 2013-06-15 17:36:42 +0200 | |
|---|---|---|
| committer | 2013-06-15 17:36:42 +0200 | |
| commit | 8cf9ee76504d2eabd969aff1760b4edb59dfb358 (patch) | |
| tree | 54bf5af4f68dc2825d61d14aec29504e9787608e /app/controllers/entryController.php | |
| parent | fafddf2a20748cdbda1f974338528c8e488f4b11 (diff) | |
Fix issue #69 : ajout d'une option pour optimiser la BDD + correction bug script actualisation lorsque connexion paramétrée
Diffstat (limited to 'app/controllers/entryController.php')
| -rwxr-xr-x | app/controllers/entryController.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/controllers/entryController.php b/app/controllers/entryController.php index 9d6d9a944..c7e13f471 100755 --- a/app/controllers/entryController.php +++ b/app/controllers/entryController.php @@ -97,4 +97,23 @@ class entryController extends ActionController { } } } + + public function optimizeAction() { + // La table des entrées a tendance à grossir énormément + // Cette action permet d'optimiser cette table permettant de grapiller un peu de place + // Cette fonctionnalité n'est à appeler qu'occasionnellement + $entryDAO = new EntryDAO(); + $entryDAO->optimizeTable(); + + $notif = array ( + 'type' => 'good', + 'content' => Translate::t ('optimization_complete') + ); + Session::_param ('notification', $notif); + + Request::forward(array( + 'c' => 'configure', + 'a' => 'display' + ), true); + } } |
