mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-03 14:09:23 +00:00
Only cache a Principal if we've actually loaded something.
This commit is contained in:
parent
5db0622d65
commit
7a3486563c
@ -234,7 +234,10 @@ class Principal {
|
||||
}
|
||||
$this->assignRowValues($row);
|
||||
$this->url = ConstructURL( $this->dav_name, true );
|
||||
$row = $cache->set($this->cacheNs, $this->cacheKey, $row, 864000 );
|
||||
|
||||
if (isset($this->cacheNs))
|
||||
$cache->set($this->cacheNs, $this->cacheKey, $row, 864000 );
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user