add clear_cache_on

Useful when a cache should be cleared whenever another method is called.