code: def initialize_dbs(settings):
      '''Initialize internal DBs using the Pelican settings dict
  
      This clears the DBs for e.g. autoreload mode to work
      '''
      global _MAIN_SETTINGS, _MAIN_SITEURL, _MAIN_LANG, _SUBSITE_QUEUE
      _MAIN_SETTINGS = settings
      _MAIN_LANG = settings['DEFAULT_LANG']
      _MAIN_SITEURL = settings['SITEURL']
      _SUBSITE_QUEUE = settings.get('I18N_SUBSITES', {}).copy()
      prepare_site_db_and_overrides()
      # clear databases in case of autoreload mode
      _SITES_RELPATH_DB.clear()
      _NATIVE_CONTENT_URL_DB.clear()
      _GENERATOR_DB.clear(f initialize_dbs(settings):
      '''Initialize internal DBs using the Pelican settings dict
  
      This clears the DBs for e.g. autoreload mode to work
      '''
      global _MAIN_SETTINGS, _MAIN_SITEURL, _MAIN_LANG, _SUBSITE_QUEUE
      _MAIN_SETTINGS = settings
      _MAIN_LANG = settings['DEFAULT_LANG']
      _MAIN_SITEURL = settings['SITEURL']
      _SUBSITE_QUEUE = settings.get('I18N_SUBSITES', {}).copy()
      prepare_site_db_and_overrides()
      # clear databases in case of autoreload mode
      _SITES_RELPATH_DB.clear()
      _NATIVE_CONTENT_URL_DB.clear()
      _GENERATOR_DB.clear()
docs: Initialize internal DBs using the Pelican settings dict
  
      This clears the DBs for e.g. autoreload mode to work