added clear_caches command. fixes #121