Changeset 6687
- Timestamp:
- 01/29/2008 11:28:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r6644 r6687 849 849 850 850 function wp_widget_recent_entries($args) { 851 if ( $output = wp_cache_get('widget_recent_entries' ) )851 if ( $output = wp_cache_get('widget_recent_entries', 'widget') ) 852 852 return print($output); 853 853 … … 877 877 wp_reset_query(); // Restore global post data stomped by the_post(). 878 878 endif; 879 wp_cache_add('widget_recent_entries', ob_get_flush() );879 wp_cache_add('widget_recent_entries', ob_get_flush(), 'widget'); 880 880 } 881 881 882 882 function wp_flush_widget_recent_entries() { 883 wp_cache_delete('widget_recent_entries' );883 wp_cache_delete('widget_recent_entries', 'widget'); 884 884 } 885 885 886 886 add_action('save_post', 'wp_flush_widget_recent_entries'); 887 887 add_action('deleted_post', 'wp_flush_widget_recent_entries'); 888 add_action('switch_theme', 'wp_flush_widget_recent_entries'); 888 889 889 890 function wp_widget_recent_entries_control() {
Note: See TracChangeset
for help on using the changeset viewer.