Development

Changeset 6360

You must first sign up to be able to contribute.

Changeset 6360

Show
Ignore:
Timestamp:
12/07/07 15:14:39 (8 months ago)
Author:
fabien
Message:

fixed sfProcessCache eaccelerator delete also cached scripts not only cached data (closes #1964)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/plugins/sfCompat10Plugin/lib/cache/sfProcessCache.class.php

    r5144 r6360  
    164164        return true; 
    165165      case 'eaccelerator': 
    166         eaccelerator_clean(); 
     166        $infos = eaccelerator_list_keys(); 
     167        if (is_array($infos)) 
     168        { 
     169          foreach ($infos as $info) 
     170          { 
     171            // eaccelerator bug (http://eaccelerator.net/ticket/287) 
     172            $key = 0 === strpos($info['name'], ':') ? substr($info['name'], 1) : $info['name']; 
     173            if (!eaccelerator_rm($key)) 
     174            { 
     175              return false; 
     176            } 
     177          } 
     178        } 
     179 
     180        return true; 
    167181    } 
    168182