#15566 closed enhancement (invalid)
if + else = always
Reported by: | hakre | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Comments | Keywords: | has-patch close |
Focuses: | Cc: |
Description
if ( 'page' == $post->post_type ) clean_page_cache( $post_id ); else clean_post_cache( $post_id );
should be written as
clean_page_cache( $post_id );
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
But you know that clean_page_cache() != clean_post_cache() ?