Skip to main content

clear_url_caches

Clears the internal caches for URL resolving and namespace lookups by resetting the cache state of get_callable, _get_cached_resolver, and get_ns_resolver.

def clear_url_caches() - > null

Clears the internal caches used by the URL resolver system to ensure that any changes to URL configurations are reloaded.

Returns

TypeDescription
nullNothing is returned; this function is called for its side effect of clearing global caches.