detroitledger / gnl_profile

API & data management system for the Detroit Ledger
https://www.detroitledger.org
0 stars 2 forks source link

Stats aren't updating? #96

Closed hampelm closed 10 years ago

hampelm commented 10 years ago

If you add / change a grant amount, the stats don't update. Are they super cached?

https://data.detroitledger.org/api/1.0/stats.jsonp

bnchdrff commented 10 years ago

yes, they're cached indefinitely... what if i cleared the stats cache each time a grant is updated?

hampelm commented 10 years ago

Yeah! That'd work great. Would it be easy to cache the new stats when a grant is updated? Or are the queries fast enough that they wouldn't delay the front page rendering that much?

If they're fairly slow, I'll rethink how we render the homepage, because it re-renders the whole page when we get the stats (which is bad anyways... I should fix that)

Sent from mobile (734) 846-5010

On Jul 20, 2014, at 11:37 AM, Benjamin Chodoroff notifications@github.com wrote:

yes, they're cached indefinitely... what if i cleared the stats cache each time a grant is updated?

— Reply to this email directly or view it on GitHub.