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
| Name | Type | Description |
|---|---|---|
| setting | str | The name of the Django setting that was changed, used to trigger the cache invalidation only for SERIALIZATION_MODULES. |
| kwargs | dict | Additional keyword arguments passed by the setting_changed signal dispatcher. |
Returns
| Type | Description |
|---|---|
null | This function does not return a value. |