Conversation
|
Thanks for finding this! if (
($distributedCacheClass === '' && $localCacheClass !== \OC\Memcache\APCu::class)
|| ($distributedCacheClass !== '' && $distributedCacheClass !== \OC\Memcache\APCu::class)
) {
$this->cache = $cacheFactory->createDistributed(Application::APP_ID . '/service');
}For the case when |
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
49aeab6 to
03cc7a1
Compare
Yes, makes sense. Otherwise we would end up again with APCu as the cache. I updated the PR accordingly. |
|
Now I am wondering, would we need to check Edit: Seems to be fine from a quick glance. In that case the NullCache is assigned, which would return |
oleksandr-nc
left a comment
There was a problem hiding this comment.
yep, with the adjusted condition I guess we are fine
|
/backport to stable32 |
|
/backport to stable31 |
|
@SystemKeeper can you please initiate backports? looks like bot ignores me 🤔 |
|
It's not you, the bot is down :-( |
|
/backport to stable32 |
|
/backport to stable31 |
I looked really hard, but to me the condition is wrong. There are 2 cases:
OR
So having:
should be perfectly fine. But from the current code, it is invalid, since
$distributedCacheClass === ''is already false and everything is combined with&&.After changing the code to
||I hit thecreateDistributedline in my local environment correctly.