have anyone implemented a logic or have an insight...
# ask-community
a
have anyone implemented a logic or have an insight of a custom
cache_key_fn
that receive as input a boolean for clearing the old cache in case we want that, something like this:
Copy code
def custom_cache_key_fn(task, should_clear_cache):
    if should_clear_cache:
        task.clear_cache()
    return "hashed-task-cache"