1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

Flextype Core: Cache - code fixes according Scrutinizer Tests.

The class Doctrine\Common\Cache\XcacheCache has been deprecated.
This commit is contained in:
Awilum
2019-02-02 00:42:41 +03:00
parent 4add453750
commit 7c77e0ff90
2 changed files with 0 additions and 8 deletions

View File

@@ -123,8 +123,6 @@ class Cache
$driver_name = 'apcu';
} elseif (extension_loaded('wincache')) {
$driver_name = 'wincache';
} elseif (extension_loaded('xcache')) {
$driver_name = 'xcache';
} else {
$driver_name = 'file';
}
@@ -147,11 +145,6 @@ class Cache
case 'wincache':
$driver = new DoctrineCache\WinCacheCache();
break;
// The XcacheCache driver uses functions that come with the xcache extension
// https://xcache.lighttpd.net
case 'xcache':
$driver = new DoctrineCache\XcacheCache();
break;
// The MemcachedCache drivers stores the cache data in Memcached.
case 'memcached':
$memcached = new \Memcached();

View File

@@ -88,7 +88,6 @@ class SettingsManager
'file' => 'File',
'apcu' => 'APCu',
'wincache' => 'WinCache',
'xcache' => 'Xcache',
'memcached' => 'Memcached',
'redis' => 'Redis',
'sqlite3' => 'SQLite3',