Skip to content

feat: Add env variable for optionally disabling cache feature#879

Merged
DenverCoder1 merged 1 commit intomainfrom
disable_cache
Feb 7, 2026
Merged

feat: Add env variable for optionally disabling cache feature#879
DenverCoder1 merged 1 commit intomainfrom
disable_cache

Conversation

@DenverCoder1
Copy link
Owner

@DenverCoder1 DenverCoder1 commented Feb 7, 2026

This pull request introduces improvements to configuration flexibility and caching behavior in the project. The main changes allow users to customize caching and user whitelisting through environment variables, and ensure caching can be disabled via configuration.

Configuration enhancements:

  • Added instructions and options to .env.example for whitelisting GitHub usernames and disabling caching, making setup and customization easier.

Caching logic improvements:

  • Updated src/index.php to respect the DISABLE_CACHE environment variable, disabling caching when set to "true".
  • Modified caching logic in src/index.php to only cache stats when caching is enabled, preventing unnecessary cache writes.

@DenverCoder1 DenverCoder1 temporarily deployed to streak-stats-disable-ca-5xccef February 7, 2026 20:57 Inactive
@DenverCoder1 DenverCoder1 merged commit af77820 into main Feb 7, 2026
4 checks passed
@DenverCoder1 DenverCoder1 deleted the disable_cache branch February 7, 2026 20:58
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.

1 participant