Skip to content

Commit

Permalink
Purge sub-sites with purge hosts.
Browse files Browse the repository at this point in the history
  • Loading branch information
topdown committed May 24, 2016
1 parent 3b8a394 commit 0bb49e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vvv_dash/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ public function process_post() {

if ( isset( $_POST['purge_hosts'] ) ) {
$purge_status = $this->_cache->purge( 'host-sites' );
$sub_sites = $this->_cache->purge( '-subsites' );
$purge_status = $purge_status + $sub_sites;
$status = vvv_dash_notice( $purge_status . ' files were purged from cache!' );
}

Expand Down

0 comments on commit 0bb49e6

Please sign in to comment.