Default value for null user
For guest users on every request executes query: SELECT `uid`, `displayname` FROM `users` WHERE LOWER(`uid`) = LOWER(null) as I see, uid can't be equal to null by design.
This commit is contained in:
parent
307d45e3bd
commit
135198bf0d
|
@ -75,6 +75,7 @@ class Database extends Backend implements IUserBackend {
|
|||
*/
|
||||
public function __construct($eventDispatcher = null) {
|
||||
$this->cache = new CappedMemoryCache();
|
||||
$this->cache[null] = false;
|
||||
$this->eventDispatcher = $eventDispatcher ? $eventDispatcher : \OC::$server->getEventDispatcher();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue