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.
1 parent 2220620 commit a4893f6Copy full SHA for a4893f6
1 file changed
lib/private/Server.php
@@ -785,8 +785,8 @@ public function __construct($webRoot, \OC\Config $config) {
785
$this->registerDeprecatedAlias('Search', ISearch::class);
786
787
$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) {
788
- $cacheFactory = $c->get(ICacheFactory::class);
789
- if ($cacheFactory->isAvailable()) {
+ $config = $c->get(\OCP\IConfig::class);
+ if (ltrim($config->getSystemValueString('memcache.distributed', ''), '\\') === \OC\Memcache\Redis::class) {
790
$backend = new \OC\Security\RateLimiting\Backend\MemoryCacheBackend(
791
$c->get(AllConfig::class),
792
$this->get(ICacheFactory::class),
0 commit comments