Changeset 976 for trunk/admin/xcache.php
- Timestamp:
- 07/14/2012 06:44:18 AM (10 months ago)
- Files:
-
- 1 modified
-
trunk/admin/xcache.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/xcache.php
r934 r976 239 239 if (isset($_POST['clearcache'])) { 240 240 $count = xcache_count($type); 241 if ($cacheid == $count) {241 if ($cacheid >= 0) { 242 242 for ($cacheid = 0; $cacheid < $count; $cacheid ++) { 243 243 xcache_clear_cache($type, $cacheid); … … 245 245 } 246 246 else { 247 xcache_clear_cache($type , $cacheid);247 xcache_clear_cache($type); 248 248 } 249 249 } … … 272 272 $total['type'] = XC_TYPE_PHP; 273 273 $total['cache_name'] = _T('Total'); 274 $total['cacheid'] = $pcnt;274 $total['cacheid'] = -1; 275 275 $total['gc'] = null; 276 276 $total['istotal'] = true; … … 296 296 $total['type'] = XC_TYPE_VAR; 297 297 $total['cache_name'] = _T('Total'); 298 $total['cacheid'] = $vcnt;298 $total['cacheid'] = -1; 299 299 $total['gc'] = null; 300 300 $total['istotal'] = true;

