Site Stuck in Maintenance Mode

WordPress creates a .maintenance file during the update process which indicates that your site is in the maintenance mode. Unless this file is removed your site will remain in the maintenance mode and your users will continue to see the notification. Once you have updated WordPress, all you have to do is delete .maintenance file … Read more

How can I easily verify a core or plugin update has not broken anything?

In your specific case, I don’t think the answer is a technical one (see my comment on the question for more details). For everyone else, the answer to “How can I easily verify a core or plugin update has not broken anything?” is automated testing. That’s the whole purpose of automated testing, because it’s unreasonable … Read more

How to implement a ‘fail whale’ to graciously limit server load (Solutions for system capacity governing)

Twitter and other high-volume sites probably do this one layer ahead of the servers. Probably with a load balancer that can detect the server load over all servers and if the load is too high (when machines stop replying) they redirect traffic to a server that returns only the “fail whale” page. This answer on … Read more

Changing the WP CLI cache folder

You could try to change it through the environment variable: WP_CLI_CACHE_DIR as we have it included in the WP_CLI::get_cache() method (src): $dir = getenv( ‘WP_CLI_CACHE_DIR’ ) ? : “$home/.wp-cli/cache”; You can also check out issue #1848 – Use shared cache directory for multiple installs for usage examples. In the WP-CLI Handbook on make.wordpress.org, we have … Read more

Custom maintenance page

When WordPress goes into maintenance mode, it adds a file named .maintenance to the root directory while the maintenance is being performed, then it’s removed afterwards. You can write a function inside your theme’s functions.php that checks for this file and loads a custom maintenance page from the theme. if ( ! function_exists( ‘wpse84987_maintenance_mode’ ) … Read more