Try 30 days of free premium.

Cron Job Configuration

Ashukr5876 wrote a year ago: 1

Hi,

I run an Anime Countdown website that displays the release dates for anime episodes scheduled for this week, today, and tomorrow. I fetch data specifically for the Anime genre from Japan and China.

Currently, my cron job is set to run every 24 hours at UTC 00:00 to update the data. However, I’ve noticed that the anime release dates are not updating in sync with the latest data from the API.

Could you please advise on the correct cron job configuration to ensure the data on my website stays up-to-date with the API?

Thank you!

Ashukr5876 wrote a year ago: 1

Hello, is there any solution to it?



Aidan wrote a year ago: 1

We could use a few more details. What endpoint are you requesting data from and what args are you using ? 

If I understand you correctly you are saying you get some data, but not the one you're expecting ? Is the data you're expecting listed at a earlier day perhaps ?


Jan wrote 11 months ago: 1

Increase the frequency of the cron job and see if that helps. Running it every 24 hours might not be sufficient to capture all updates. A more frequent schedule, like every 12 hours or even every hour, might be more effective.

Valid question from Aidan: Which endpoints are you using?

Ashukr5876 wrote 11 months ago: 1

@Jan wrote:
Increase the frequency of the cron job and see if that helps. Running it every 24 hours might not be sufficient to capture all updates. A more frequent schedule, like every 12 hours or even every hour, might be more effective.

Valid question from Aidan: Which endpoints are you using?

https://api.animecounter.app/v1/home?type=thisWeek

Try 30 days of free premium.