Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is checkFresh for? #340

Open
lo1tuma opened this issue Mar 7, 2014 · 1 comment
Open

What is checkFresh for? #340

lo1tuma opened this issue Mar 7, 2014 · 1 comment

Comments

@lo1tuma
Copy link
Member

lo1tuma commented Mar 7, 2014

@selaux and me trying to write some tests for fetcher.js and can’t figure out how checkFresh is meant to work and why it belongs to the fetcher.

What we need is an exact description of how this feature should work.

Another question is, why this should be a feature of rendr. I think this might be a very special use-case which isn’t required by a typical backbone / rendr app. As rendr claims not to be a framework, this might be out of its scope.

@bigethan
Copy link
Contributor

bigethan commented Apr 2, 2014

My assumption is that checkFresh determines whether the fetcher goes shopping at the modelStore for cached data or goes to the model's endpoint for fresh data. It's a helpful way to dodge a known stale cache situation (eg: user just logged in / did an action that changes certain objects, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants