Implemented new invalidation method; added filter hook. #25

Merged
plescheff merged 9 commits from master into master 2014-09-05 09:29:07 +01:00
Showing only changes of commit 304393e66a - Show all commits

View file

@ -271,6 +271,9 @@ class WP_FFPC_Backend {
} while ($number_of_pages>1 && $current_page_id<=$number_of_pages);
}
/* Hook to customise clearing array. */
apply_filters('wp_ffpc_to_clear_array', $to_clear, $post_id);
foreach ( $to_clear as $link => $dummy ) {
/* clear all feeds as well */
$to_clear[ $link. 'feed' ] = true;