Skip to content

Make caching configurable #70

Open
MattyTheHacker wants to merge 6 commits intomainfrom
make-cache-config
Open

Make caching configurable #70
MattyTheHacker wants to merge 6 commits intomainfrom
make-cache-config

Conversation

@MattyTheHacker
Copy link
Copy Markdown
Member

@MattyTheHacker MattyTheHacker commented Apr 12, 2026

not tested and probably doesn't work, priority is #68 for now

@MattyTheHacker MattyTheHacker self-assigned this Apr 12, 2026
@MattyTheHacker MattyTheHacker added enhancement New feature or request go Pull requests that update go code labels Apr 12, 2026
Copilot AI review requested due to automatic review settings April 12, 2026 00:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new configuration flag to control whether Guild membership lookups use cached data or refresh more aggressively.

Changes:

  • Add platform.caching boolean to the config schema and load it into Config.Platform.
  • Update guildScraper.GetMember to conditionally refresh the membership list based on the new config value.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
internal/guildScraper/checkMember.go Adds config-driven behavior to refresh membership list when caching is disabled.
internal/config/config.go Extends Platform config with a Caching flag and reads platform.caching from config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/guildScraper/checkMember.go Outdated
Comment thread internal/guildScraper/checkMember.go
Comment thread internal/config/config.go
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/guildScraper/checkMember.go
Comment thread internal/guildScraper/checkMember.go Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/config/config.go
AdminToken string
SessionSigningToken string
DiscordWebhook *DiscordWebhook
Caching bool
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth giving this a more descriptive name like EnableMembershipListCaching or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants