@@ -20,6 +20,11 @@ function admin_delete($id = false) {
2020 if (isset ($ slug ['Plugin ' ]['name ' ]) && $ this ->EyPlugin ->delete ($ slug ['Plugin ' ]['name ' ])) {
2121 Cache::clearGroup ('_cake_core_ ' );
2222 Cache::clearGroup ('_cake_model_ ' );
23+
24+ App::uses ('Folder ' , 'Utility ' );
25+ $ folder = new Folder (ROOT .DS .'app ' .DS .'tmp ' .DS .'cache ' );
26+ $ folder ->delete ();
27+
2328 $ this ->History ->set ('DELETE_PLUGIN ' , 'plugin ' );
2429 $ this ->Session ->setFlash ($ this ->Lang ->get ('PLUGIN__DELETE_SUCCESS ' ), 'default.success ' );
2530 $ this ->redirect (array ('controller ' => 'plugin ' , 'action ' => 'index ' , 'admin ' => true ));
@@ -42,6 +47,11 @@ function admin_enable($id = false) {
4247 if ($ this ->EyPlugin ->enable ($ id )) {
4348 Cache::clearGroup ('_cake_core_ ' );
4449 Cache::clearGroup ('_cake_model_ ' );
50+
51+ App::uses ('Folder ' , 'Utility ' );
52+ $ folder = new Folder (ROOT .DS .'app ' .DS .'tmp ' .DS .'cache ' );
53+ $ folder ->delete ();
54+
4555 $ this ->History ->set ('ENABLE_PLUGIN ' , 'plugin ' );
4656 $ this ->Session ->setFlash ($ this ->Lang ->get ('PLUGIN__ENABLE_SUCCESS ' ), 'default.success ' );
4757 $ this ->redirect (array ('controller ' => 'plugin ' , 'action ' => 'index ' , 'admin ' => true ));
@@ -64,6 +74,11 @@ function admin_disable($id = false) {
6474 if ($ this ->EyPlugin ->disable ($ id )) {
6575 Cache::clearGroup ('_cake_core_ ' );
6676 Cache::clearGroup ('_cake_model_ ' );
77+
78+ App::uses ('Folder ' , 'Utility ' );
79+ $ folder = new Folder (ROOT .DS .'app ' .DS .'tmp ' .DS .'cache ' );
80+ $ folder ->delete ();
81+
6782 $ this ->History ->set ('DISABLE_PLUGIN ' , 'plugin ' );
6883 $ this ->Session ->setFlash ($ this ->Lang ->get ('PLUGIN__DISABLE_SUCCESS ' ), 'default.success ' );
6984 $ this ->redirect (array ('controller ' => 'plugin ' , 'action ' => 'index ' , 'admin ' => true ));
@@ -97,6 +112,10 @@ function admin_install($apiID = false, $slug = false) {
97112 Cache::clearGroup ('_cake_core_ ' );
98113 Cache::clearGroup ('_cake_model_ ' );
99114
115+ App::uses ('Folder ' , 'Utility ' );
116+ $ folder = new Folder (ROOT .DS .'app ' .DS .'tmp ' .DS .'cache ' );
117+ $ folder ->delete ();
118+
100119 echo json_encode (array (
101120 'statut ' => 'success ' ,
102121 'plugin ' => array (
@@ -127,6 +146,11 @@ function admin_update($plugin_id) {
127146 if ($ updated === true ) {
128147 Cache::clearGroup ('_cake_core_ ' );
129148 Cache::clearGroup ('_cake_model_ ' );
149+
150+ App::uses ('Folder ' , 'Utility ' );
151+ $ folder = new Folder (ROOT .DS .'app ' .DS .'tmp ' .DS .'cache ' );
152+ $ folder ->delete ();
153+
130154 $ this ->History ->set ('UPDATE_PLUGIN ' , 'plugin ' );
131155 $ this ->Session ->setFlash ($ this ->Lang ->get ('PLUGIN__UPDATE_SUCCESS ' ), 'default.success ' );
132156 $ this ->redirect (array ('controller ' => 'plugin ' , 'action ' => 'index ' , 'admin ' => true ));
0 commit comments