Skip to content

Commit

Permalink
Autoptimize support added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pross committed Jan 23, 2018
1 parent 7c896bb commit faec4b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The plugin also defines the DONOTCACHEPAGE constant when the builder is active,

# Changelog

* 1.3
* Autoptimize support.
* 1.2
* Pagely cache support.
* Fastest Cache support.
Expand Down
7 changes: 6 additions & 1 deletion beaver-cache-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Beaver Builder Cache Helper
* Description: This plugin will clear various caches when layouts and templates are saved. It also clears the cache when WordPress finishes updating plugins and themes. The plugin also defines the DONOTCACHEPAGE constant when the builder is active, this is respected by most cache plugins.
* Version: 1.2
* Version: 1.3
* License: GNU General Public License v2.0
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
Expand Down Expand Up @@ -66,6 +66,11 @@ public static function clear_caches() {
$wp_fastest_cache->deleteCache( true );
}

// autoptimize
if( class_exists( 'autoptimizeCache' ) ) {
autoptimizeCache::clearall();
}

error_log( 'Cleared Caches' );
}
/**
Expand Down

0 comments on commit faec4b7

Please sign in to comment.