script.module.simpleplugin
script.module.simpleplugin copied to clipboard
Function with both "action" and "mem_cached" decorators
Hi!
Is it possible to have a function with both "action" and "men_cached" decorators. I just try it but it seems to not working correctly. Maybe I do it wrong?
@plugin.cached(30)
@plugin.action()
def foo(param):
# Download an HTML page
# Parse it with beautiful soup
# Construct the listing
return create_listing(...)