Selaa lähdekoodia

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
Marien Fressinaud 12 vuotta sitten
vanhempi
commit
5659d2d4e1
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      app/controllers/entryController.php

+ 2 - 0
app/controllers/entryController.php

@@ -101,6 +101,8 @@ class entryController extends ActionController {
 		$entryDAO = new EntryDAO();
 		$entryDAO = new EntryDAO();
 		$entryDAO->optimizeTable();
 		$entryDAO->optimizeTable();
 
 
+		touch(PUBLIC_PATH . '/data/touch.txt');
+
 		$notif = array (
 		$notif = array (
 			'type' => 'good',
 			'type' => 'good',
 			'content' => Translate::t ('optimization_complete')
 			'content' => Translate::t ('optimization_complete')