We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ac768c + eb3e715 commit 165aeebCopy full SHA for 165aeeb
lib/private/Server.php
@@ -786,8 +786,8 @@ public function __construct($webRoot, \OC\Config $config) {
786
$this->registerDeprecatedAlias('Search', ISearch::class);
787
788
$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) {
789
- $cacheFactory = $c->get(ICacheFactory::class);
790
- if ($cacheFactory->isAvailable()) {
+ $config = $c->get(\OCP\IConfig::class);
+ if (ltrim($config->getSystemValueString('memcache.distributed', ''), '\\') === \OC\Memcache\Redis::class) {
791
$backend = new \OC\Security\RateLimiting\Backend\MemoryCacheBackend(
792
$c->get(AllConfig::class),
793
$this->get(ICacheFactory::class),
0 commit comments