summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-05-13 11:58:19 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-05-13 12:26:36 +0200
commite5a91fc185c4c992469e19d37c4ad3691ed1d3ae (patch)
tree424594a6a6f10f9d62bec62f5fde75856da7eb9f
parentd6becb8d828aef0b06df3de51fe9bb0d9710801d (diff)
downloadnextcloud-server-e5a91fc185c4c992469e19d37c4ad3691ed1d3ae.tar.gz
nextcloud-server-e5a91fc185c4c992469e19d37c4ad3691ed1d3ae.zip
remove file cache remainings from server container
-rw-r--r--lib/private/server.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 7fa668b222e..f70106b9f4c 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -38,13 +38,13 @@ use bantu\IniGetWrapper\IniGetWrapper;
use OC\AppFramework\Http\Request;
use OC\AppFramework\Db\Db;
use OC\AppFramework\Utility\SimpleContainer;
-use OC\Cache\UserCache;
use OC\Command\AsyncBus;
use OC\Diagnostics\NullQueryLogger;
use OC\Diagnostics\EventLogger;
use OC\Diagnostics\QueryLogger;
use OC\Mail\Mailer;
use OC\Memcache\ArrayCache;
+use OC\Memcache\Null as NullCache;
use OC\Http\Client\ClientService;
use OC\Security\CertificateManager;
use OC\Files\Node\Root;
@@ -217,8 +217,8 @@ class Server extends SimpleContainer implements IServerContainer {
$this->registerService('AppHelper', function ($c) {
return new \OC\AppHelper();
});
- $this->registerService('UserCache', function ($c) {
- return new UserCache();
+ $this->registerService('NullCache', function ($c) {
+ return new NullCache();
});
$this->registerService('MemCacheFactory', function (Server $c) {
$config = $c->getConfig();
@@ -646,12 +646,14 @@ class Server extends SimpleContainer implements IServerContainer {
}
/**
- * Returns an ICache instance
+ * Returns an ICache instance. Since 8.1.0 it returns a fake cache. Use
+ * getMemCacheFactory() instead.
*
* @return \OCP\ICache
+ * @deprecated 8.1.0 use getMemCacheFactory to obtain a proper cache
*/
public function getCache() {
- return $this->query('UserCache');
+ return $this->query('NullCache');
}
/**