We can cache any view/non-view function as
@cache.cached(timeout=50, key_prefix='all_comments')
Can we give key_prefix some variable values. Let say, I'm caching a function as
@cache.cached(timeout=50, key_prefix=value)
def get_all_comments(value):
Can we give key_prefix as the same arguments as we are getting in function. If not argument, then atleast some other variable by any proper way.
In the docs it says