Changeset 1064 for trunk/htdocs/cacher/cacher.php
- Timestamp:
- 2012-07-27T18:37:37+02:00 (11 months ago)
- File:
-
- 1 edited
-
trunk/htdocs/cacher/cacher.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/cacher/cacher.php
r1058 r1064 158 158 $_GET['type'] = $type = (int) $_GET['type']; 159 159 160 // {{{ process clear 161 function process Clear()160 // {{{ process clear, enable, disable 161 function processAction() 162 162 { 163 163 $type = isset($_POST['type']) ? $_POST['type'] : null; … … 168 168 $cacheid = (int) (isset($_POST['cacheid']) ? $_POST['cacheid'] : 0); 169 169 if (isset($_POST['clearcache'])) { 170 $count = xcache_count($type); 171 if ($cacheid >= 0) { 172 for ($cacheid = 0; $cacheid < $count; $cacheid ++) { 173 xcache_clear_cache($type, $cacheid); 174 } 175 } 176 else { 177 xcache_clear_cache($type); 178 } 179 } 180 } 181 } 182 processClear(); 170 xcache_clear_cache($type, $cacheid); 171 } 172 if (isset($_POST['enable'])) { 173 xcache_enable_cache($type, $cacheid); 174 } 175 if (isset($_POST['disable'])) { 176 xcache_enable_cache($type, $cacheid, false); 177 } 178 } 179 } 180 processAction(); 183 181 // }}} 184 182 // {{{ load info/list … … 207 205 $total['gc'] = null; 208 206 $total['istotal'] = true; 207 unset($total['compiling']); 209 208 $cacheinfos[] = $total; 210 209 }
Note: See TracChangeset
for help on using the changeset viewer.

