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

Make some stats more efficient #1417

Open
pkevan opened this issue Oct 28, 2024 · 0 comments
Open

Make some stats more efficient #1417

pkevan opened this issue Oct 28, 2024 · 0 comments
Labels
[Component] CampTix Including addons

Comments

@pkevan
Copy link
Contributor

pkevan commented Oct 28, 2024

When we call update_stats, we repeat the call, causing 5 updates, rather than just one (since the option is the same):

https://github.com/WordPress/wordcamp.org/blob/production/public_html/wp-content/plugins/camptix/camptix.php#L2697-L2703

We could create a new method which allows multiple stats to be update at the same time, to avoid options being overwritten, if there happens to be several updates at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] CampTix Including addons
Projects
None yet
Development

No branches or pull requests

1 participant