From 295113eb2ec1ddcc83e4abb3ca8b5330e8eb7bdd Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 10 Nov 2013 20:21:45 +0100 Subject: [PATCH] Invalide cache lors d'une optimisation de la BDD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour avoir la notification après une optimisation, on doit invalider le cache. Un peu dommage puisque rien de visible n'est changé sinon À voir pour améliorer le système de notification plus tard --- app/controllers/entryController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/entryController.php b/app/controllers/entryController.php index 8e2b215d5..1ba9cc3cd 100755 --- a/app/controllers/entryController.php +++ b/app/controllers/entryController.php @@ -88,6 +88,8 @@ class entryController extends ActionController { $entryDAO = new EntryDAO(); $entryDAO->optimizeTable(); + touch(PUBLIC_PATH . '/data/touch.txt'); + $notif = array ( 'type' => 'good', 'content' => Translate::t ('optimization_complete')