Thomas Ricouard
Thomas Ricouard
For now it's excepted that it's not the case. The only way to get the updated count is to go in the post detail. Will be worked on later on.
Use it for everything else than front page https://hn.algolia.io/api At the moment we scrape the website, now we should only scrap the home page, and load comments from the API....
https://github.com/Dimillian/HackerSwifter/blob/master/Hacker%20Swifter/Hacker%20Swifter/Models/Post.swift#L185-L220 Put this code (and comment model code) in a background queue so it won't slow down the UI when parsing the HTML page.
https://github.com/Dimillian/HackerSwifter/blob/master/Hacker%20Swifter/Hacker%20Swifter/HTTP/Cache.swift#L126 Put that line in a dispatch async in a background queue. At the moment I can't because I get some odd errors with the Swift compiler... Will do in...
- [ ] Be able to query the cache date for a ressource - [ ] Automatically remove too old cache (at launch?)