summaryrefslogtreecommitdiff
path: root/app/controllers/entryController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-10 20:21:45 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-12 22:45:00 +0100
commit295113eb2ec1ddcc83e4abb3ca8b5330e8eb7bdd (patch)
tree4c2296d0cec6f2e9623e42d3219997c612905e54 /app/controllers/entryController.php
parent4c5e9d0dd828ec9da44b0f178edd73b7213d6d20 (diff)
Invalide cache lors d'une optimisation de la BDD
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
Diffstat (limited to 'app/controllers/entryController.php')
-rwxr-xr-xapp/controllers/entryController.php2
1 files changed, 2 insertions, 0 deletions
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')