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

Wrap all Redis commands in try-catch statements #4

Open
villesiltala opened this issue Jun 18, 2019 · 0 comments
Open

Wrap all Redis commands in try-catch statements #4

villesiltala opened this issue Jun 18, 2019 · 0 comments

Comments

@villesiltala
Copy link

Redis commands can throw an error at some occasions. An example of an erroneous situation is invalid authentication to Redis. To prevent fatal PHP errors, all Redis commands should be wrapped in try-catch statements. When an error is caught, the object cache should return false to let the request fall back to the WordPress database.

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

No branches or pull requests

1 participant