Implemented new invalidation method; added filter hook. #25
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue