fix cache decorator
add print to see the cache in action