Make WordPress Core


Ignore:
Timestamp:
11/07/2005 09:56:03 PM (21 years ago)
Author:
ryan
Message:

Object caching, round one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-post.php

    r2996 r3011  
    138138        wp_set_post_cats('', $post_ID, $post_category);
    139139
    140         if ( 'static' == $post_status )
     140        if ( 'static' == $post_status ) {
    141141                clean_page_cache($post_ID);
    142         else
     142                wp_cache_delete($post_ID, 'pages');
     143        } else {
    143144                clean_post_cache($post_ID);
     145        }
    144146
    145147        // Set GUID
Note: See TracChangeset for help on using the changeset viewer.