0
Answered

Past and future data

Hvizdak Tomas 2 years ago in Import API updated by Andrei S. (Developer) 2 years ago 4

Is there any rule for past and future fixtures? What I mean is. How far in the future will the fixtures be loaded and at what point will the past fixtures be deleted? Can I define deleting fixtures older than e.g. one year? Can I define showing future fixtures not more than 3 weeks ahead? Is 1GB DB enough for the project?

GOOD, I'M SATISFIED
Satisfaction mark by Hvizdak Tomas 2 years ago

The space occupied by the Db depends on the number of seasons, leagues, teams, players.

Whether only the result or all players, cautions, substitutions, goals of the game are present in the matches.

There are many reasons

-1

Ok, thanks. The questions now are: 

1. Can I decide what seasons I download from api-football.com? 

2. How do I define the jobs that download date from the API to present them in the plugin?

+1
Under review

Hi

Can I define deleting fixtures older than e.g. one year?
Can I define showing future fixtures not more than 3 weeks ahead?

No.

The plugin loads data from API and saves it in the database.

You manually select the seasons and leagues you want to import. And in most cases, you have to manually create an import configuration.

Is 1GB DB enough for the project?

In short - No.

It depends on the number of leagues and data you want to have on your website. For example, player statistics required a lot of DB space. I don't recommend using the plugin on hosting with different limitations.


My hosting recommendations:

- RunCloud + (DO/Vultr/UpCLoud servers) - for advanced and expert users

- Cloudways (DO/Vultr) - for all

- SpinWP + (DO/Vultr) - for expert users only (you have to set up many things in the command line)


Can I decide what seasons I download from api-football.com?

Yes

How do I define the jobs that download date from the API to present them in the plugin?

You do most jobs manually. 

Check the tutorials to understand how the plugin works

https://www.anwp.pro/how-to-create-wordpress-live-scores-website-with-football-leagues-plugin/

- https://anwppro.userecho.com/knowledge-bases/2/articles/1667-api-import-configuration-round-robin-competition-like-regular-national-league

- https://anwppro.userecho.com/knowledge-bases/2/articles/1670-api-import-configuration-multistage-competition-like-international-cup


--

Best Regards

Andrei S.