proudcity / wp-proudcity

The ProudCity WordPress platform
https://proudcity.com
Other
21 stars 9 forks source link

Custom Redis Error Message #2460

Closed curtismchale closed 8 months ago

curtismchale commented 8 months ago

Build

Source Fairfax

Is your feature request related to a problem? Please describe. If we have a momentary drop in the Redis connection it presents the user with an ominous message when 99% of the time all we need to do is refresh.

Describe the solution you'd like Provide a message that tells the user refresh the page and things should resolve or if they don' contact support.

Should we bug Slack about this as it's just a temporary issue or would that create too many notices in dev-alerts.

We can add a custom file in WP_CONTENT_DIR . /redis-cache.php with a custom message. See redis-cache/includes/object-cache.php line 2905.

lukefretwell commented 8 months ago

@curtismchale suggested message:

# Refresh your browser

Looks like we've experienced a minor hiccup while updating this website.

Simply refresh your browser and everything should work just fine. 

Thoughts:

curtismchale commented 8 months ago

This has been deployed for a week and we have now moved our messages over to a custom channel.

Composer: https://github.com/proudcity/wp-proudcity/releases/tag/2024.01.30.0858 Build: https://github.com/proudcity/proud-recipes/releases/tag/2024.01.30.0858