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 Marien Fressinaud <dev@marienfressinaud.fr> 2013-11-10 20:21:45 +0100
commit5659d2d4e14169e4763e3681fb471b55a1c9948e (patch)
tree34862c10517c5f86fd3f6671aba6879c891eac47 /app/controllers/entryController.php
parentbfeda6810dc3a1991e37cdb8124a007edc3dc33c (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 4c9eb9d1b..d4023c519 100755
--- a/app/controllers/entryController.php
+++ b/app/controllers/entryController.php
@@ -101,6 +101,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')