'Reset setting based property values.'

def _clear_cached_properties(self, setting, **kwargs):

    if (setting == 'MEDIA_ROOT'):
        self.__dict__.pop('base_location', None)
        self.__dict__.pop('location', None)
    elif (setting == 'MEDIA_URL'):
        self.__dict__.pop('base_url', None)
    elif (setting == 'FILE_UPLOAD_PERMISSIONS'):
        self.__dict__.pop('file_permissions_mode', None)
    elif (setting == 'FILE_UPLOAD_DIRECTORY_PERMISSIONS'):
        self.__dict__.pop('directory_permissions_mode', None)
