|
@@ -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:
|
|
|
* Xcache: http:
|
|
|
* memcache: http:
|
|
|
* APC: http:
|
|
|
- * eAccelerator: http:
|
|
|
* Zend: http:
|
|
|
* Zend: http:
|
|
|
*
|
|
@@ -2790,36 +2788,6 @@ function cache_put_data($key, $value, $ttl = 120)
|
|
|
memcache_set($memcached, $key, $value, 0, $ttl);
|
|
|
}
|
|
|
break;
|
|
|
- case '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':
|
|
|
-
|
|
|
- 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':
|
|
|
|
|
|
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':
|
|
|
-
|
|
|
- if (function_exists('eaccelerator_get'))
|
|
|
- $value = eaccelerator_get($key);
|
|
|
- break;
|
|
|
- case 'mmcache':
|
|
|
-
|
|
|
- if (function_exists('mmcache_get'))
|
|
|
- $value = mmcache_get($key);
|
|
|
- break;
|
|
|
case 'apc':
|
|
|
|
|
|
if (function_exists('apc_fetch'))
|