Skip to content

At what interval of time are the stats updated? #782

Locked Answered by lowlighter
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hi 👋 !

If you're using the GitHub Action, then it depends on which schedule you used (see Setup GitHub Action workflow). You can change the cron to whatever you'd like, but tbh anything lower than 1 hour is probably overkill

# Schedule daily updates
on:
  schedule: [{cron: "0 0 * * *"}]

For timezone, you need to use config_timezone (see Configure used timezone):

- uses: lowlighter/metrics@latest
  with:
    config_timezone: Europe/Paris

The shared web instance (metrics.lecoq.io) has a cache of about one hour, and stats are updated only when it expires and a new request is sent to it

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lowlighter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment