```{index} single: invalidate_all_method_caches; mro function ``` ```{index} single: mro::invalidate_all_method_caches; Perl function ``` # invalidate_all_method_caches Invalidate the method cache for every package in the interpreter. ## Synopsis mro::invalidate_all_method_caches(); The next method dispatch after the call walks `@ISA` from scratch instead of reusing a cached resolution. Use this when you have globally disturbed the class graph — rebuilt `@ISA` wholesale across many packages, or hot-patched method tables — and cannot name every affected class individually. For a targeted invalidation, prefer `method_changed_in`. Takes no arguments. Any non-empty call croaks with `Usage: mro::invalidate_all_method_caches()`.