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

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/w3tc-auto-pilot/trunk@1177959 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
Cybr authored and Cybr committed Jun 10, 2015
1 parent 9958034 commit b0250e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=== W3TC Auto Pilot ===
Contributors: cybr
Contributors: Cybr
Tags: cache, control, w3, total, automatic, flush, update, multisite, mapping, hide
Requires at least: 3.6.0
Tested up to: 4.2.2
Expand Down
6 changes: 3 additions & 3 deletions w3tc-auto-pilot.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function wap_w3tc_init() {

//* Adds advanced flushing on update of certain items (especially related to object cache)
//* Usage of each action hook is documented above under Developer Notes
add_action( 'after_switch_theme', 'wap_w3tc_flush_all' );
add_action( 'after_switch_theme', 'wap_w3tc_flush_all' );
add_action( 'customize_save_after', 'wap_w3tc_flush_all' );
add_filter( 'widget_update_callback', 'wap_w3tc_flush_all_widget', 11, 4 ); // Will not always fire, but does the job :)

Expand Down Expand Up @@ -61,7 +61,7 @@ function wap_w3tc_init() {

function wap_mapped_clear() {
//* Check for domain-mapping plugin
if ( is_plugin_active( 'domain-mapping/domain-mapping.php' )) {
if ( is_plugin_active( 'domain-mapping/domain-mapping.php' ) ) {
global $wpdb,$blog_id;

$ismapped = wp_cache_get('wap_mapped_clear_' . $blog_id, 'domain_mapping' );
Expand All @@ -71,7 +71,7 @@ function wap_mapped_clear() {
}

//* string $ismapped, if mapped != ''
if ( !empty($ismapped) ) {
if ( !empty($ismapped) ) {
// add_action( 'save_post', 'wap_w3tc_flush_single_post' ); // Doesn't work unfortunately with Domain Mapping... somehow 2 ID's are being created?
add_action( 'save_post', 'wap_w3tc_flush_page' ); // So we just flush it entirely. But only if the domain is mapped! :D
}
Expand Down

0 comments on commit b0250e0

Please sign in to comment.