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

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/w3tc-auto-pilot/trunk@1177139 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
Cybr authored and Cybr committed Jun 9, 2015
1 parent 6c3394d commit b988b47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ It's absolutely great on MultiSite installations, especially when you allow untr

== Changelog ==

= 1.0.2 =
* Added forced page cache purging on each post save when Domain Mapping (by WPMUdev) is active

= 1.0.1 =
* Removed admin notices and errors for non-super-admins (MultiSite) / non-admins (single)

Expand Down
9 changes: 8 additions & 1 deletion w3tc-auto-pilot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: W3TC Auto Pilot
* Plugin URI: https://wordpress.org/plugins/w3tc-auto-pilot/
* Description: Put W3 Total Cache on auto pilot. This plugin allows you to control W3 Total Cache in such a manner that no one knows you're using it, not even your admins. Either network activate it or activate it per site.
* Version: 1.0.1
* Version: 1.0.2
* Author: Sybre Waaijer
* Author URI: https://cyberwire.nl/
* License: GPLv2 or later
Expand Down Expand Up @@ -54,9 +54,16 @@ function wap_w3tc_init() {
//* Removes admin notices for non-super-admins
add_action( 'admin_init', 'wap_w3tc_remove_notices', 20);

//* Added functionality to prevent cache bugs with Domain Mapping (by WPMUdev)
add_action( 'admin_init', 'wap_mapped_clear', 20);
}
add_action( 'after_setup_theme', 'wap_w3tc_init' ); // Call very early, before init and admin_init

function wap_mapped_clear() {
//* Check for domain-mapping plugin
if ( is_plugin_active( 'domain-mapping/domain-mapping.php' ))
add_action( 'save_post', 'wap_w3tc_flush_page' );
}

function wap_w3tc_flush_all() {

Expand Down

0 comments on commit b988b47

Please sign in to comment.