Skip to content

Commit

Permalink
Adjust default configuration (tier limits) to match current IGDB tiers
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Dec 31, 2019
1 parent aef5fbb commit 9076092
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
17 changes: 6 additions & 11 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,20 @@
'api_token' => env('IGDB_TOKEN', ''),

/*
* This package caches queries automatically.
* Here you can set how long (in seconds) each query should be cached (by
* default).
* This package caches queries automatically (for 1 hour per default).
* Here you can set how long each query should be cached (in seconds).
*
* To turn cache off set this value to 0
*/
'cache_lifetime' => env('IGDB_CACHE_LIFETIME', 3600),

/*
* This is the per-page limit for your tier ("Free" by default)
* Adjust this to 500 if you are on the "Pro" tier or in the Partner Program
* or to 5000 if you are in the "Enterprise" tier.
* This is the per-page limit for your tier.
*/
'per_page_limit' => 50,
'per_page_limit' => 500,

/*
* This is the offset limit for your tier ("Free" by default)
* Adjust this to 5000 if you are on the "Pro" tier or in the Partner Program
* or to 0 (to turn it off) if you are in the "Enterprise" tier.
* This is the offset limit for your tier.
*/
'offset_limit' => 150,
'offset_limit' => 5000,
];
18 changes: 7 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,22 @@ return [
'api_token' => env('IGDB_TOKEN', ''),

/*
* This package caches queries automatically.
* Here you can set how long each query should be cached.
* This package caches queries automatically (for 1 hour per default).
* Here you can set how long each query should be cached (in seconds).
*
* To turn cache off set this value to 0
*/
'cache_lifetime' => env('IGDB_CACHE_LIFETIME', 60),
'cache_lifetime' => env('IGDB_CACHE_LIFETIME', 3600),

/*
* This is the per-page limit for your tier ("Free" by default)
* Adjust this to 500 if you are on the "Pro" tier or in the Partner Program
* or to 5000 if you are in the "Enterprise" tier.
* This is the per-page limit for your tier.
*/
'per_page_limit' => 50,
'per_page_limit' => 500,

/*
* This is the offset limit for your tier ("Free" by default)
* Adjust this to 5000 if you are on the "Pro" tier or in the Partner Program
* or to 0 (to turn it off) if you are in the "Enterprise" tier.
* This is the offset limit for your tier.
*/
'offset_limit' => 150,
'offset_limit' => 5000,
];
```

Expand Down

0 comments on commit 9076092

Please sign in to comment.