-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: external files app calls same function unnecessarily multiple times #38861
Comments
Cc @icewind1991 @nextcloud/server-backend |
https://www.php.net/manual/en/function.debug-backtrace.php to enhance your debug log with a stack trace. |
Fixed by #38418 ? |
Seems familiar and could be a fix. I will later cherry pick this commit and test this issue again. |
@come-nc unfortunately the amount of function calls stays the same. So no fix |
What about #38945 ? |
It seems the performance gets better, and there are three calls less. So 3 calls to propfind instead of 6. Here are all calls for one file:
After the first call the cache successfully returns the metadata. |
Is this Issue done (closeable) or are we still keeping it open to track some specific remaining improvements? |
Fixed in #38945 |
Bug description
In an attempt to improve the performance of the external files app, I have added some loggers here and noticed that the same method is called several times for the same file and I wonder what the point is and whether this is intended.
If not, this could be a bug
Steps to reproduce
Expected behavior
A propfind for an (external) file should only be called once.
Either its in the cache or not. If not request the info.
Don´t call the propfind function multiple times and only once receive an answer.
Installation method
Community Manual installation with Archive
Nextcloud Server version
26
Operating system
RHEL/CentOS
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
In the logs you can see the multiple function calls.
There are 3 possible logs:
I added the microtime to be sure that its not the same log just printed multiple times. but you can see different timestamps, so i assume its different function calls.
The text was updated successfully, but these errors were encountered: