mirror of https://github.com/nextcloud/server
Merge pull request #43996 from nextcloud/feat/store-last-known-quota-usage
feat: Store last known quota usage for a user
This commit is contained in:
commit
7033967115
|
@ -596,6 +596,11 @@ class OC_Helper {
|
|||
'mountPoint' => trim($mountPoint, '/'),
|
||||
];
|
||||
|
||||
if ($ownerId && $path === '/') {
|
||||
// If path is root, store this as last known quota usage for this user
|
||||
\OCP\Server::get(\OCP\IConfig::class)->setUserValue($ownerId, 'files', 'lastSeenQuotaUsage', (string)$relative);
|
||||
}
|
||||
|
||||
$memcache->set($cacheKey, $info, 5 * 60);
|
||||
|
||||
return $info;
|
||||
|
|
Loading…
Reference in New Issue