|
@@ -2744,11 +2744,9 @@ function cache_quick_get($key, $file, $function, $params, $level = 1)
|
|
|
* - It may "miss" so shouldn't be depended on
|
|
|
* - Uses the cache engine chosen in the ACP and saved in settings.php
|
|
|
* - It supports:
|
|
|
- * Turck MMCache: http://turck-mmcache.sourceforge.net/index_old.html#api
|
|
|
* Xcache: http://xcache.lighttpd.net/wiki/XcacheApi
|
|
|
* memcache: http://www.php.net/memcache
|
|
|
* APC: http://www.php.net/apc
|
|
|
- * eAccelerator: http://bart.eaccelerator.net/doc/phpdoc/
|
|
|
* Zend: http://files.zend.com/help/Zend-Platform/output_cache_functions.htm
|
|
|
* Zend: http://files.zend.com/help/Zend-Platform/zend_cache_functions.htm
|
|
|
*
|
|
@@ -2790,36 +2788,6 @@ function cache_put_data($key, $value, $ttl = 120)
|
|
|
memcache_set($memcached, $key, $value, 0, $ttl);
|
|
|
}
|
|
|
break;
|
|
|
- case 'eaccelerator':
|
|
|
- // eAccelerator...
|
|
|
- if (function_exists('eaccelerator_put'))
|
|
|
- {
|
|
|
- if (mt_rand(0, 10) == 1)
|
|
|
- eaccelerator_gc();
|
|
|
-
|
|
|
- if ($value === null)
|
|
|
- @eaccelerator_rm($key);
|
|
|
- else
|
|
|
- eaccelerator_put($key, $value, $ttl);
|
|
|
- }
|
|
|
- break;
|
|
|
- case 'mmcache':
|
|
|
- // Turck MMCache?
|
|
|
- if (function_exists('mmcache_put'))
|
|
|
- {
|
|
|
- if (mt_rand(0, 10) == 1)
|
|
|
- mmcache_gc();
|
|
|
-
|
|
|
- if ($value === null)
|
|
|
- @mmcache_rm($key);
|
|
|
- else
|
|
|
- {
|
|
|
- mmcache_lock($key);
|
|
|
- mmcache_put($key, $value, $ttl);
|
|
|
- mmcache_unlock($key);
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
case 'apc':
|
|
|
// Alternative PHP Cache, ahoy!
|
|
|
if (function_exists('apc_store'))
|
|
@@ -2912,16 +2880,6 @@ function cache_get_data($key, $ttl = 120)
|
|
|
$value = (function_exists('memcache_get')) ? memcache_get($cache['connection'], $key) : memcached_get($cache['connection'], $key);
|
|
|
}
|
|
|
break;
|
|
|
- case 'eaccelerator':
|
|
|
- // Again, eAccelerator.
|
|
|
- if (function_exists('eaccelerator_get'))
|
|
|
- $value = eaccelerator_get($key);
|
|
|
- break;
|
|
|
- case 'mmcache':
|
|
|
- // The older, but ever-stable, Turck MMCache...
|
|
|
- if (function_exists('mmcache_get'))
|
|
|
- $value = mmcache_get($key);
|
|
|
- break;
|
|
|
case 'apc':
|
|
|
// This is the free APC from PECL.
|
|
|
if (function_exists('apc_fetch'))
|