xbmcswift2 icon indicating copy to clipboard operation
xbmcswift2 copied to clipboard

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

Open dersphere opened this issue 11 years ago • 0 comments

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.

dersphere avatar Mar 29 '13 18:03 dersphere