At the moment, we use a 15 minutes long transient to cache the chart data:
|
// Make cache. |
|
set_transient( |
|
'statify_data', |
|
$data, |
|
MINUTE_IN_SECONDS * 15 |
|
); |
How about updating the chart (via Ajax) if the transient is expired? Or updating the chart also every 15 minutes to show the latest possible data?
First asked here: https://wordpress.org/support/topic/auto-refresh-evert-n-minutes/
This should not impact performance and we should ask us if this will be useful for most of our users.
At the moment, we use a 15 minutes long transient to cache the chart data:
statify/inc/class-statify-dashboard.php
Lines 290 to 295 in 1efbb2f
How about updating the chart (via Ajax) if the transient is expired? Or updating the chart also every 15 minutes to show the latest possible data?
First asked here: https://wordpress.org/support/topic/auto-refresh-evert-n-minutes/
This should not impact performance and we should ask us if this will be useful for most of our users.