|
|
|
|
|
by scottjackson
5976 days ago
|
|
> It's not like you need karma updates every time you do a request to the API. Obviously. When a request is made to get stories from HN, no HackerNewsUser objects are created (and thus, no karma gets updated). hn-api will only update karma when you, the coder, make a HackerNewsUser object or call the HackerNewsUser.refreshKarma() method. Like I said -- one request when it gets stories or one request when you get a user's karma. |
|
Then you can specify some kind of time-out (say 3 days or so), after which it does get refreshed.