Skip to content

[Bug]: cachebuster value rising infinitely  #34457

Closed

Description

@blizzz

⚠️ 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

The app config value for cachbuster of theming is constantly rising. This prevents caching on frontend resources, and has side effects on Talk. Because this is used in calculating a hash, it appears that resources were changed and requires a reload. This happens infinitely.

This was introduced in #34432 specifically the added lines 227 and 230 in apps/theming/lib/ThemingDefaults.php. The behaviour becomes normal when the lines are commented out, alas this may have other side effects I am not aware of.

Steps to reproduce

  1. Run Nextcloud 25 RC3 (earlier versions not affected)
  2. Have Nextcloud Talk open

Expected behavior

Talk does not think the instances was updated every 30s.

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

not relevant

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Activity

  1. blizzz commented on Oct 6, 2022

    @blizzz
    MemberAuthor

    @Pytal would you mind investigating that?

  2. added this to the Nextcloud 25 milestone on Oct 6, 2022
  3. Pytal commented on Oct 7, 2022

    @Pytal
    Member

    The cachebuster value was increased here

    $this->increaseCacheBuster();
    return BackgroundService::DEFAULT_COLOR;
    } else if (isset(BackgroundService::SHIPPED_BACKGROUNDS[$themingBackground]['primary_color'])) {
    $this->increaseCacheBuster();

    in #34298 to ensure that assets like the favicon would display correctly for the user based on the auto-selected color preset from the shipped background

    Will see if I can come up with a solution that will work alongside the latest theming updates

  4. self-assigned this
    on Oct 7, 2022
  5. PVince81 commented on Oct 11, 2022

    @PVince81
    Member

    I heard that it's critical because it increases the load on the server and Talk users get a message that they need to reload

  6. blizzz commented on Oct 11, 2022

    @blizzz
    MemberAuthor

    Yes, it's an absolute killer. Our instance is patched, as described above, right after the upgrade (as soon as i figured out where it happened).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions