1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

Remove xcache support

This commit is contained in:
Zankaria 2024-03-07 14:23:48 +01:00
parent 8cebc7f80c
commit 0154e54f85
4 changed files with 3 additions and 15 deletions

View File

@ -46,7 +46,6 @@ We try to make sure vichan is compatible with all major web servers. vichan does
2. ImageMagick (command-line ImageMagick or GraphicsMagick preferred).
3. ~~[APC (Alternative PHP Cache)](http://php.net/manual/en/book.apc.php)~~,
[APCu (Alternative PHP Cache)](http://php.net/manual/en/book.apcu.php),
[XCache](http://xcache.lighttpd.net/),
[Memcached](http://www.php.net/manual/en/intro.memcached.php) or
[Redis](https://redis.io/docs/about/)

View File

@ -47,9 +47,6 @@ class Cache {
case 'apcu':
$data = apcu_fetch($key);
break;
case 'xcache':
$data = xcache_get($key);
break;
case 'php':
$data = isset(self::$cache[$key]) ? self::$cache[$key] : false;
break;
@ -101,9 +98,6 @@ class Cache {
case 'apcu':
apcu_store($key, $value, $expires);
break;
case 'xcache':
xcache_set($key, $value, $expires);
break;
case 'fs':
$key = str_replace('/', '::', $key);
$key = str_replace("\0", '', $key);
@ -139,9 +133,6 @@ class Cache {
case 'apcu':
apcu_delete($key);
break;
case 'xcache':
xcache_unset($key);
break;
case 'fs':
$key = str_replace('/', '::', $key);
$key = str_replace("\0", '', $key);

View File

@ -121,7 +121,6 @@
*/
$config['cache']['enabled'] = 'php';
// $config['cache']['enabled'] = 'xcache';
// $config['cache']['enabled'] = 'apc';
// $config['cache']['enabled'] = 'memcached';
// $config['cache']['enabled'] = 'redis';

View File

@ -876,12 +876,11 @@ if ($step == 0) {
),
array(
'category' => 'Misc',
'name' => 'Caching available (APC(u), XCache, Memcached or Redis)',
'name' => 'Caching available (APC(u), Memcached or Redis)',
'result' => extension_loaded('apcu') || extension_loaded('apc') ||
extension_loaded('xcache') || extension_loaded('memcached') ||
extension_loaded('redis'),
extension_loaded('memcached') || extension_loaded('redis'),
'required' => false,
'message' => 'You will not be able to enable the additional caching system, designed to minimize SQL queries and significantly improve performance. <a href="http://php.net/manual/en/book.apc.php">APC</a> is the recommended method of caching, but <a href="http://xcache.lighttpd.net/">XCache</a>, <a href="http://www.php.net/manual/en/intro.memcached.php">Memcached</a> and <a href="http://pecl.php.net/package/redis">Redis</a> are also supported.'
'message' => 'You will not be able to enable the additional caching system, designed to minimize SQL queries and significantly improve performance. <a href="http://php.net/manual/en/book.apc.php">APC</a> is the recommended method of caching, but <a href="http://www.php.net/manual/en/intro.memcached.php">Memcached</a> and <a href="http://pecl.php.net/package/redis">Redis</a> are also supported.'
),
array(
'category' => 'Misc',