**What is the feature or improvement you would like to see?** Expose `invalidate_cache()`. **Use cases for the feature** Benchmarking and testing. **References** https://igraph.org/c/html/latest/igraph-Basic.html#igraph_invalidate_cache