mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Update update.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
1ed495738b
commit
cad4883544
1 changed files with 5 additions and 3 deletions
|
@ -1078,9 +1078,11 @@ function update_1446()
|
|||
|
||||
// In case the distributed cache driver is the default value, but the current cache driver isn't default,
|
||||
// we assume that the distributed cache driver should be the same as the current cache driver
|
||||
if ($distributed_cache_driver_source === \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC &&
|
||||
$cache_driver_source > \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC) {
|
||||
DI::config()->set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver'));
|
||||
if (
|
||||
$distributed_cache_driver_source === \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC
|
||||
&& $cache_driver_source > \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC
|
||||
) {
|
||||
DI::config()->set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver'));
|
||||
}
|
||||
|
||||
return Update::SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue