feat: Store last known quota usage for a user

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/43996/head
Côme Chilliet 3 months ago committed by Côme Chilliet
parent 4a2330876e
commit 80191906b3

@ -596,6 +596,11 @@ class OC_Helper {
'mountPoint' => trim($mountPoint, '/'),
];
if ($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…
Cancel
Save