Add caching to the Stats page
This commit is contained in:
parent
711f21c458
commit
e242c5d742
1 changed files with 15 additions and 14 deletions
|
@ -64,22 +64,23 @@
|
||||||
%span.big-number-card-number
|
%span.big-number-card-number
|
||||||
= number_with_delimiter(@dossiers_count)
|
= number_with_delimiter(@dossiers_count)
|
||||||
|
|
||||||
.stat-card.stat-card-half.pull-left
|
- cache "computation-heavy-stats", :expires_in => 1.day do
|
||||||
%span.stat-card-title Temps de traitement moyen d'un dossier
|
.stat-card.stat-card-half.pull-left
|
||||||
|
%span.stat-card-title Temps de traitement moyen d'un dossier
|
||||||
|
|
||||||
.chart-container
|
.chart-container
|
||||||
.chart
|
.chart
|
||||||
= line_chart @dossier_instruction_mean_time,
|
= line_chart @dossier_instruction_mean_time,
|
||||||
:ytitle => "Jours",
|
:ytitle => "Jours",
|
||||||
:colors => ["rgba(61, 149, 236, 1)"]
|
:colors => ["rgba(61, 149, 236, 1)"]
|
||||||
|
|
||||||
.stat-card.stat-card-half.pull-left
|
.stat-card.stat-card-half.pull-left
|
||||||
%span.stat-card-title Temps de remplissage moyen d'un dossier
|
%span.stat-card-title Temps de remplissage moyen d'un dossier
|
||||||
|
|
||||||
.chart-container
|
.chart-container
|
||||||
.chart
|
.chart
|
||||||
= line_chart @dossier_filling_mean_time,
|
= line_chart @dossier_filling_mean_time,
|
||||||
:ytitle => "Minutes",
|
:ytitle => "Minutes",
|
||||||
:colors => ["rgba(61, 149, 236, 1)"]
|
:colors => ["rgba(61, 149, 236, 1)"]
|
||||||
|
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
Loading…
Reference in a new issue