kopia lustrzana https://github.com/snarfed/bridgy-fed
pymemcache bug fix: expire is always int, 0 for no expiration
for https://console.cloud.google.com/errors/detail/CNe0nL7V2KGRSw;filter=%5B%5D;time=PT1H;refresh=true;locations=global?project=bridgy-federated&inv=1&invt=AbzxFApull/1963/head
rodzic
09b4a5cdfb
commit
d93e12d765
|
|
@ -78,8 +78,7 @@ def memoize(expire=None, key=None, write=True, version=MEMOIZE_VERSION):
|
|||
Bumping this version can have the same effect as clearing the cache for
|
||||
just the affected function.
|
||||
"""
|
||||
if expire:
|
||||
expire = int(expire.total_seconds())
|
||||
expire = int(expire.total_seconds()) if expire else 0
|
||||
|
||||
def decorator(fn):
|
||||
@functools.wraps(fn)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue