Skip to main content

clear_serializers_cache

Clears the internal serializers cache in Django when the SERIALIZATION_MODULES setting is modified.

def clear_serializers_cache(
setting: str,
kwargs: dict
) - > null

Clears the internal Django serializers cache when the SERIALIZATION_MODULES setting is modified to ensure new serialization modules are correctly loaded.

Parameters

NameTypeDescription
settingstrThe name of the Django setting that was changed, used to trigger the cache invalidation only for SERIALIZATION_MODULES.
kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullThis function does not return a value.