Revert "revert using files cache for cli change in order to fix failing install in Travis"

This reverts commit 1367463e6b.
This commit is contained in:
Ralf Becker 2020-03-04 19:15:43 +01:00
parent 1367463e6b
commit cbb1391c37

View File

@ -769,7 +769,7 @@ class Cache
if (is_null(Cache::$default_provider)) if (is_null(Cache::$default_provider))
{ {
Cache::$default_provider = Cache::$default_provider =
// PHP_SAPI === 'cli' ? 'EGroupware\Api\Cache\Files' : PHP_SAPI === 'cli' ? 'EGroupware\Api\Cache\Files' :
(function_exists('apcu_fetch') && Cache\Apcu::available() ? 'EGroupware\Api\Cache\Apcu' : (function_exists('apcu_fetch') && Cache\Apcu::available() ? 'EGroupware\Api\Cache\Apcu' :
(function_exists('apc_fetch') && Cache\Apc::available() ? 'EGroupware\Api\Cache\Apc' : (function_exists('apc_fetch') && Cache\Apc::available() ? 'EGroupware\Api\Cache\Apc' :
'EGroupware\Api\Cache\Files')); 'EGroupware\Api\Cache\Files'));