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

add an url-param to bypass or refresh a cached route's result #105

Open
dersphere opened this issue Mar 29, 2013 · 0 comments
Open

add an url-param to bypass or refresh a cached route's result #105

dersphere opened this issue Mar 29, 2013 · 0 comments
Assignees
Milestone

Comments

@dersphere
Copy link
Contributor

Like discussed on IRC.

Example:

/cached_route/?refresh_cache=true
/cached_route/?bypass_cache=true

Which would result in

@plugin.cached_route('/cached_route/', TTL=600)
def get_foo():
    return api.get_stuff()

returning fresh data, even when TTL is not reached.

@ghost ghost assigned jbeluch Mar 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants