Skip to content

Add constant to set default cache expire#263

Closed
jimvandervoort wants to merge 1 commit into
pantheon-systems:masterfrom
jimvandervoort:master
Closed

Add constant to set default cache expire#263
jimvandervoort wants to merge 1 commit into
pantheon-systems:masterfrom
jimvandervoort:master

Conversation

@jimvandervoort
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Thanks for the PR, @jimvandervoort !

For clarity, can we call the constant WP_REDIS_DEFAULT_EXPIRE_SECONDS ?

@jimvandervoort
Copy link
Copy Markdown
Contributor Author

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

@danielbachhuber
Copy link
Copy Markdown
Contributor

Thanks @jimvandervoort . Landing this in #264

@danielbachhuber
Copy link
Copy Markdown
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