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

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

Open
Zodiac1978 opened this issue Aug 15, 2023 · 0 comments
Open

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

Zodiac1978 opened this issue Aug 15, 2023 · 0 comments

Comments

@Zodiac1978
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant