-
Notifications
You must be signed in to change notification settings - Fork 26
Takes long to retrieve information #34
Comments
Well, if you're properly storing your refresh token and only refreshing your access token when it expires, that could help a little bit. Ultimately though I'd like to lazy load all of the profile properties so that the data is only fetched & parsed when requested. Although I'm not totally sure how that works in PHP. So to answer your question, not really at the moment. My suggestion is that if you run a stat viewer website, maybe only allow manual stat updates when the user clicks a button or something? |
I’m updating it to use jquery to fetch info, instead of pre-processing it when the page is loaded. Great project though 👍 |
What about using sessions?
Elapsed time is reduced from 4.5 to 1.5. |
Thanks, also is there any api requests limit. I don’t really want my account banned. I tried a new epic games account but didn’t have permission to view the stats. |
I do the same to avoid using mine, why you don't have permissions to view stats? You must login once, to accessing data. |
I have logged in and verified the account, although I might try logging into fortnite itself. |
@Niall7459 Use cache service like Redis or Memcache, also account need to be only for api because if you start playing old session will be killed and no more stats. |
@atgrau the session code isn't working it takes too long time also, on postman 4-5 seconds on localhost wow its 15+ sec |
Worked for me as well. |
@Niall7459 how did you fix the unauthorized problem with the new account ? |
@atgrau |
@krokit i am using laravel, but i am new to laravel i don't know how to use it, already downloaded redis with composer yesterday but when i stored "auth" in cache it gave error that profile not recognized . |
|
@krokit if i used forever to store the auth it would be a problem ? |
@NeVeR2TrY Depends on what you store in the cache. For example, i cache Auth for 475 min. because the session is 480 min, yes i can refresh it but for dev i prefer to re-cache it. For the leaderboard, i set 15 min. cache. For the store is caching time depends on the left time to midnight.
|
@Tustin I recommend Auth to be renamed to Fortnite because other cms and scripts usually are using Auth for login and it's possible to have bugs with 2 packages with the same class. |
@krokit how you got leaderboards working 👍 ? |
@NeVeR2TrY Check PR #36 :) |
@krokit It's under the Fortnite namespace so if necessary, you could always do Edit: Although come to think of it, I might end up restructuring this library a bit to be similar to my psn-php project rewrite, so that all my PHP related API wrappers stay at least somewhat consistent. |
It takes around 3-4 seconds to receive the data.
Is there anyway to speed this up?
The text was updated successfully, but these errors were encountered: