Call `clear_url_caches()` instead. It's more likely to stay up to date when the code lives on, and it resets the `get_callable` cache which is missing from your patch.