Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constant to set default cache expire #263

Closed

Conversation

jimvandervoort
Copy link
Contributor

This PR adds WP_REDIS_EXPIRE_SECONDS constant to customise default expire. I added this because on our Redis instance keeps growing with some plugins not setting sensible expire times. Setting a (long) default expire time allows us to work around this issue.

@danielbachhuber
Copy link
Contributor

Thanks for the PR, @jimvandervoort !

For clarity, can we call the constant WP_REDIS_DEFAULT_EXPIRE_SECONDS ?

@jimvandervoort
Copy link
Contributor Author

@danielbachhuber yeah that's better. Changed to WP_REDIS_DEFAULT_EXPIRE_SECONDS!

@danielbachhuber
Copy link
Contributor

Thanks @jimvandervoort . Landing this in #264

@danielbachhuber
Copy link
Contributor

Just tagged v0.8.1 and released to WordPress.org. Thanks again!

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.

2 participants