Skip to content
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

Optimise members pages #953

Open
cs-endo opened this issue Oct 8, 2020 · 3 comments
Open

Optimise members pages #953

cs-endo opened this issue Oct 8, 2020 · 3 comments

Comments

@cs-endo
Copy link
Contributor

cs-endo commented Oct 8, 2020

Currently uses like 23% cpu and takes a few seconds to load every time you open a page. We'll want to find some way of making that heavy SQL a little lighter.

@cs-endo
Copy link
Contributor Author

cs-endo commented Oct 23, 2020

The issue is related to userData['training_avail']. Commenting out these lines solves the problem and keeping them in gives the following error on myradio-dev.
Warning : Use of undefined constant AUTH_AWARDANYTRAINING - assumed 'AUTH_AWARDANYTRAINING' (this will throw an Error in a future version of PHP) - In /usr/local/www/myradio-dev/src/Classes/ServiceAPI/MyRadio_TrainingStatus.php on line 209

@cs-endo
Copy link
Contributor Author

cs-endo commented Oct 23, 2020

#960

@mstratford
Copy link
Member

That warning is because the AUTH constant it's looking for hasn't actually been defined as a permission.

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

No branches or pull requests

2 participants