[members_logged_in]
[/members_logged_in]
[members_not_logged_in]
Prepare your WordPress site for a surge in traffic
A sudden traffic spike on your site can be a lovely surprise until your site can't deal with the sudden influx of visitors. This tutorial explains how to anticipate spikes and prepare your site in advance. It also shows you what to do if your site slows down or crashes after a surge. In this webinar, we will look at solutions that you can put into place to protect your sites.
Save the Webinar 0
Webinar Originally Broadcast: September 8, 2024
Video Download: HD Download | Mobile Download
Additional Downloads: PDF Handout
Additional Notes:
Audio Only – Download File
Code Example:
function maintenance_mode() { if( !is_user_logged_in()) { wp_die(' <div style="background-image:url('//static.pexels.com/photos/90807/pexels-photo-90807.jpeg');padding:50px;"> <h1 style="color:yellow;font-size:3em;">Pardon our mess. We are doing some maintenance</h1> <p style="color:#fff;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> '); } } add_action('get_header', 'maintenance_mode');