-
Notifications
You must be signed in to change notification settings - Fork 19
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
Create a refresh function #8
Comments
I added an update_points function that receives the post_save signal from Round : when a round is saved, eg from the admin panel, it triggers this function that computes points for participants and teams (which were added a field points_so_far). Then all views should use this db field. That's a progress, but it's not perfect yet (some views still need to compute some scores). |
@xuod Could you please explain your improvement of yesterday? |
Some detail to the optimization :
|
Currently, pages refreshes only when someone wants to access them, and after a given minimum amount of time (otherwise the cache version is displayed). It is in practice a good thing, but when too many people try to access a cpu-costly page at the same time, the server receives too much requests and crashes.
We need to change this. We need a refresh function that can be called e.g. through the admin panel by pressing a button, and where every pages refresh. When participants access the web site, they only see the pages that are in the cache.
The text was updated successfully, but these errors were encountered: