Browse Source

Reintroduce user cache

This was required by avatars and was broken with https://github.com/owncloud/core/pull/16200

Fixes https://github.com/owncloud/core/issues/16942
tags/v8.1RC2
Lukas Reschke 9 years ago
parent
commit
15ba2a4100
2 changed files with 4 additions and 3 deletions
  1. 1
    0
      lib/private/avatar.php
  2. 3
    3
      lib/private/server.php

+ 1
- 0
lib/private/avatar.php View File

* @return void * @return void
*/ */
public function set ($data) { public function set ($data) {

if($data instanceOf \OCP\IImage) { if($data instanceOf \OCP\IImage) {
$img = $data; $img = $data;
$data = $img->data(); $data = $img->data();

+ 3
- 3
lib/private/server.php View File

$this->registerService('AppHelper', function ($c) { $this->registerService('AppHelper', function ($c) {
return new \OC\AppHelper(); return new \OC\AppHelper();
}); });
$this->registerService('NullCache', function ($c) {
return new NullCache();
$this->registerService('UserCache', function ($c) {
return new Cache\File();
}); });
$this->registerService('MemCacheFactory', function (Server $c) { $this->registerService('MemCacheFactory', function (Server $c) {
$config = $c->getConfig(); $config = $c->getConfig();
* @deprecated 8.1.0 use getMemCacheFactory to obtain a proper cache * @deprecated 8.1.0 use getMemCacheFactory to obtain a proper cache
*/ */
public function getCache() { public function getCache() {
return $this->query('NullCache');
return $this->query('UserCache');
} }


/** /**

Loading…
Cancel
Save