Skip to content

Conversation

@FoxxMD
Copy link
Owner

@FoxxMD FoxxMD commented Oct 17, 2022

TODO:

  • Determine if CM should react to modlog events as first-class citizen (like comment/submission) or react to them like a modifier (source, dispatch)
  • Check/verify if modlog can be a shared source
  • ???

Refactor ModAction to use data from either mod notes or modlog
@FoxxMD FoxxMD self-assigned this Oct 17, 2022
@CryptoMaximalist
Copy link

In case your link was requesting me to log my request here:

One way I've kept API and network activity lower on my bots is to rely on mod log data to keep my cache fresh between daily updates. Here are a few examples:

  • Watch the modlog for edits to the CM config page and kick off an update instantly rather than waiting 5 min
  • Download a list of mods and contributors(approved users) daily, then throughout the day use the mod log to update this cache. I would love to exclude my checks from running on these "whitelisted" users, but didn't want to use the API call to check.
  • Watch for ModNote log entries and perhaps they have enough info to avoid pulling Notes during event processing.
  • Unfortunately the UserNotes log entry is just a wiki edit without the actual note in it, but that's not useless. If the modlog does signal changes to a user's UserNotes, CM knows to pull a fresh version of their notes. If there have been no modlog entries for the user since the UserNotes were cached, it knows the cache isn't stale.

@FoxxMD FoxxMD added this to the 1.0 milestone Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants