Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/w3tc-auto-pilot/trunk@1186996 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
Cybr authored and Cybr committed Jun 24, 2015
1 parent 1b4fcfb commit 59dbb1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions w3tc-auto-pilot.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ function wap_w3tc_flush_page_mapped( $post_ID ) {
$originaldomain = $current_blog->domain;

//* Get mapped domain
$mappeddomain = wp_cache_get('wap_mapped_clear_' . $blog_id, 'domain_mapping' );
$mappeddomain = wp_cache_get('wap_mapped_domain_' . $blog_id, 'domain_mapping' );
if ( false === $mappeddomain ) {
$mappeddomain = $wpdb->get_var( $wpdb->prepare( "SELECT domain FROM {$wpdb->base_prefix}domain_mapping WHERE blog_id = %d", $blog_id ) ); //string
wp_cache_set('wap_mapped_clear_' . $blog_id, $mappeddomain, 'domain_mapping', 3600 ); // 1 hour
wp_cache_set('wap_mapped_domain_' . $blog_id, $mappeddomain, 'domain_mapping', 3600 ); // 1 hour
}

//* Get scheme setting of orginal domain
//* Get scheme setting of mapped domain
$mappedscheme = wp_cache_get('wap_mapped_scheme_' . $blog_id, 'domain_mapping' );
if ( false === $scheme ) {
if ( false === $mappedscheme ) {
$mappedscheme = $wpdb->get_var( $wpdb->prepare( "SELECT scheme FROM {$wpdb->base_prefix}domain_mapping WHERE blog_id = %d", $blog_id ) ); //bool
wp_cache_set('wap_mapped_scheme_' . $blog_id, $mappedscheme, 'domain_mapping', 3600 ); // 1 hour
}
Expand Down

0 comments on commit 59dbb1a

Please sign in to comment.