Skip to content

Commit

Permalink
Obey cache supression.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Mar 6, 2017
1 parent 770191c commit d0e2ddc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wp-site-aliases/includes/functions/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ function update_site_alias_cache( $aliases = array() ) {
* @param int|WP_Site_Alias $alias Alias ID or alias object to remove from the cache
*/
function clean_blog_alias_cache( $alias ) {
global $_wp_suspend_cache_invalidation;

// Bail if cache invalidation is suspended
if ( ! empty( $_wp_suspend_cache_invalidation ) ) {
return;
}

// Get alias, and bail if not found
$alias = WP_Site_Alias::get_instance( $alias );
Expand Down

0 comments on commit d0e2ddc

Please sign in to comment.