Skip to content

cleanFolder does a PROPFIND on every file in S2S case #15802

Closed

Description

@PVince81

I noticed on 7.0.5 that whenever you mount a remote share, the update detection will not only call shareinfo.php but also call cleanFolder(), which will itself call file_exists() on every file inside the folder, which itself calls PROPFIND on the remote files.

Originally this was intended to detect whether files inside the remote share folder were deleted.
We should already have that information through the ajax/shareinfo.php call, so we can probably do a diff between the local cache and remote cache to find out which entries to remove without the need of doing extra remote PROPFINDs (which can be slow in S2S situations)

@icewind1991 as discussed

Activity

  1. added this to the milestone on Apr 22, 2015
  2. PVince81 commented on Apr 22, 2015

    @PVince81
    ContributorAuthor

    Setting to 8.1 in case there is time left, else 8.2. (it doesn't break functionality, just makes S2S slow)

    CC @DeepDiver1975

  3. PVince81 commented on Apr 28, 2015

    @PVince81
    ContributorAuthor

    Slightly related: #15904 would be an alternative approach (switching to PROPFIND with an update detection logic similar to the sync client instead of shareinfo.php)

  4. modified the milestones: , on May 6, 2015
  5. ghost added this to the milestone on Sep 21, 2015
  6. ghost removed this from the milestone on Sep 21, 2015
  7. ghost added this to the milestone on Feb 20, 2016
  8. ghost removed this from the milestone on Feb 20, 2016
  9. PVince81 commented on Jun 14, 2016

    @PVince81
    ContributorAuthor

    Related: #24421

    Still happening in 9.1.0beta2 and it seems the stat cache misses in this case. This is when browsing the parent folder in which the received fed share is in.

    @icewind1991 I hope we can get rid of cleanFolders altogether, or at least let specific storage backends tell that they don't need it like fed shares. Fed shares don't need it because they rely on etags for update detection.

  10. icewind1991 commented on Jun 14, 2016

    @icewind1991
    Contributor

    or at least let specific storage backends tell that they don't need it like fed shares

    #25103

  11. lock commented on Aug 4, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  12. locked as resolved and limited conversation to collaborators on Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions