Removed apc and xcache support, made apc alias of apcu

This commit is contained in:
Matias Griese
2019-01-31 17:51:04 +02:00
parent 0e14a325f8
commit ba2c37c216
2 changed files with 1 additions and 13 deletions

View File

@@ -5,6 +5,7 @@
* Added index file support for Flex Objects
1. [](#improved)
* Improved error detection for broken Flex Objects
* Removed apc and xcache support, made apc alias of apcu
# v1.6.0-rc.1
## 01/30/2019
@@ -12,14 +13,12 @@
1. [](#improved)
* Improved `$page->forms()` call, added `$page->addForms()`
* Made `FormFlashFile` more robust against deleted files
* Removed apc and xcache support, made apc alias of apcu
* Updated languages from crowdin
1. [](#bugfix)
* Fixed a bug in `FormFlashFile::moveTo()` not deleting the old file
* Fixed `FlexMediaTrait::getMedia()` trying to include uploaded but already moved media
* Fixed `ImageMedium` constructor warning when file does not exist
* Fixed bad host header in PSR-7 (if using 'php -S localhost:8000 system/router.php')
* Fixed Getters::count() method not returning anything
* Fixed non-namespaced exceptions in scheduler
# v1.6.0-beta.8

View File

@@ -212,12 +212,8 @@ class Cache extends Getters
if (!$setting || $setting === 'auto') {
if (extension_loaded('apcu')) {
$driver_name = 'apcu';
} elseif (extension_loaded('apc')) {
$driver_name = 'apc';
} elseif (extension_loaded('wincache')) {
$driver_name = 'wincache';
} elseif (extension_loaded('xcache')) {
$driver_name = 'xcache';
}
} else {
$driver_name = $setting;
@@ -227,9 +223,6 @@ class Cache extends Getters
switch ($driver_name) {
case 'apc':
$driver = new DoctrineCache\ApcCache();
break;
case 'apcu':
$driver = new DoctrineCache\ApcuCache();
break;
@@ -238,10 +231,6 @@ class Cache extends Getters
$driver = new DoctrineCache\WinCacheCache();
break;
case 'xcache':
$driver = new DoctrineCache\XcacheCache();
break;
case 'memcache':
$memcache = new \Memcache();
$memcache->connect($this->config->get('system.cache.memcache.server', 'localhost'),