Show
Ignore:
Timestamp:
08/20/07 15:15:06 (1 year ago)
Author:
hans
Message:

* Changed crash handler error message format to Apache-style error log format as suggested in ticket #217
* Fixed ticket #274
* Performance: eliminated a bunch of time() syscalls
* Performance: eliminated calls to eaccelerator_gc when not build with either session, shm or user cache functionality (which are all off by default)
* Disable eaccelerator_list_keys function when not build with either session, shm or user cache functionality (which are all off by default)
* Disable 'User Cache' tab in control panel when not build with either session, shm or user cache functionality (which are all off by default)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/control.php

    r326 r330  
    273273<div class="head2"> 
    274274<?php 
    275 $items = array(0 => 'Status', 1 => 'Script Cache', 2 => 'User Cache'); 
     275/* 
     276    Check if eA was compiled with WITH_EACCELERATOR_CONTENT_CACHING) || WITH_EACCELERATOR_SESSIONS || WITH_EACCELERATOR_SHM  
     277    if yes, show 'User Cache' tab, else dont 
     278*/ 
     279if (function_exists(eaccelerator_list_keys)) { 
     280    $items = array(0 => 'Status', 1 => 'Script Cache', 2 => 'User Cache'); 
     281} else { 
     282    $items = array(0 => 'Status', 1 => 'Script Cache'); 
     283
     284 
    276285foreach ($items as $i => $item) { 
    277286    echo '<span class="menuitem'.(($sec == $i)?'_sel':'').'" onmouseover="menusel(this)" onmouseout="menusel(this)" onclick="gosec('.$i.')">'.(($sec != $i)?'<a href="'.$_SERVER['PHP_SELF'].'?sec='.$i.'">'.$item.'</a>':$item).'</span>';