Skip to main content

reset_cache

Reset global state when LANGUAGES setting has been changed, as some languages should no longer be accepted.

def reset_cache(
setting: string,
**kwargs: dict
) - > null

Reset global state when LANGUAGES setting has been changed, as some languages should no longer be accepted.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was modified, used to determine if a cache reset is necessary.
**kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullNothing is returned; this function performs side effects on global caches.