-
-
Save rachelbaker/d874274baaf488f276e8 to your computer and use it in GitHub Desktop.
HyperDB - Send Reads to Master.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Send Reads to Master | |
* Description: Suggested fix for backend replication lag | |
* Author: WP Engine | |
* Version: 0.2 | |
* | |
*/ | |
if ( is_admin() ) { | |
global $wpdb; | |
$wpdb->send_reads_to_masters(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment