def clear_cache(temp_dir=None):
with memory_lock:<EOL><INDENT>_module_values['<STR_LIT>'] = None<EOL>_module_values['<STR_LIT>'] = None<EOL><DEDENT>ca_path, temp = _ca_path(temp_dir)<EOL>if temp:<EOL><INDENT>with path_lock:<EOL><INDENT>if os.path.exists(ca_path):<EOL><INDENT>os.remove(ca_path)<EOL><DEDENT><DEDENT><DEDENT>
Clears any cached info that was exported from the OS trust store. This will
ensure the latest changes are returned from calls to get_list() and
get_path(), but at the expense of re-exporting and parsing all certificates.

:param temp_dir:
    The temporary directory to cache the CA certs in on OS X and Windows.
    Needs to have secure permissions so other users can not modify the
    contents. Must be the same value passed to get_path().