pluginkollektiv / statify

Statify – statistics plugin for WordPress
https://wordpress.org/plugins/statify/
GNU General Public License v3.0
76 stars 22 forks source link

Feature request: Real-time data in the chart (auto-refresh) #267

Open Zodiac1978 opened 1 year ago

Zodiac1978 commented 1 year ago

At the moment, we use a 15 minutes long transient to cache the chart data:

https://github.com/pluginkollektiv/statify/blob/1efbb2f3e198f5c04233f9c444af7d92ba429c72/inc/class-statify-dashboard.php#L290-L295

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.