Skip to content

[Bug]: Don't cache quota when queried in web UI #35421

@PVince81

Description

@PVince81

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Quota in web UI only updates after a delay.

From my understanding the purpose of the quota cache is only to save performance with repeated PROPFINDs, not when queried for display.

  • idea 1: only use the cached quota value for PROPFINDs
  • idea 2: invalidate the quota cache as soon as size propagation happens (ex: through upload operations)

Steps to reproduce

  1. Setup a user with a quota of 5 GB
  2. Login as that user
  3. Upload a bunch of files
  4. Refresh the page
  5. Look at the used space at the bottom left

Expected behavior

Used space must adjust itself immediately.

Installation method

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database engine version

No response

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

N/A

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

Observed on master and stable25, pre 25.0.2 RC1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ☑️ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions