-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Autoloader performance issue #461
Comments
@nmoinvaz - Thank you very much for the thorough report here. I'm going to take a look today and should be able to get this into the next release, coming in the next couple of weeks. |
👆 twitched on the close issue button Alright, I can confirm that this is trying to autoload all classes that are called in plugins. Moving this to high priority to fix and should have a PR ready next week at some point. @nmoinvaz thanks again for the heads-up here. Your solution is close but:
|
@nmoinvaz - FYI, I just submitted a PR to correct this issue, linked above. This will be included in the next release being tested right now. It still needs a review on our end but if you want to patch that method (changed lines) on a test site and make sure it works for you, go ahead. Once that PR is merged, you're safe to make that change in production and when the plugin updates, those changes will be retained. Thanks again for the report! |
I have tested it and it works well so far. |
Fixed in #465, merged into |
It appears that the autoloader slows down the wordpress site significantly.
Running performance monitor I was able to see that for every class that was being searched for, it would search in a bunch of different directories - even for files that were not part of the auth0 plugin. The more plugins I had installed, the worse the problem would get.
I believe the issue exists here:
https://github.com/auth0/wp-auth0/blob/9713e6a7cdf4c3446632be5338426dfba102bf3a/WP_Auth0.php#L412
And this is the fix that I did that seems to help things although I don't know if it is a permanent solution:
Thanks.
The text was updated successfully, but these errors were encountered: