code: def ping_directories_handler(sender, **kwargs):
      
      entry = kwargs['instance']
  
      if entry.is_visible and settings.SAVE_PING_DIRECTORIES:
          for directory in settings.PING_DIRECTORIES:
              DirectoryPinger(directory, [entry])
docs: Ping directories when an entry is saved.