Skip to content

Commit

Permalink
Merge 7cdcc44 into 0f48431
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwistow committed Jun 27, 2016
2 parents 0f48431 + 7cdcc44 commit af4621d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wp-purges.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public function purge( $post_id ) {
return;
}

purgely_purge_surrogate_key( 'post-' . absint( $post_id ) );
if ( isset( Purgely_Settings::get_setting( 'fastly_service_id') ) ) {
purgely_purge_surrogate_key( 'post-' . absint( $post_id ) );
} else {
purgely_purge_url( get_permalink( $post_id ) );
}
}

/**
Expand Down

0 comments on commit af4621d

Please sign in to comment.