Support static methods for
def nocache(method):
@wraps(method)
- def inner(self, *args, **kwargs):
+ def inner(*args, **kwargs):
with cache.disabled():
with session.cache_disabled():
- return method(self, *args, **kwargs)
+ return method(*args, **kwargs)
return inner
