Make WordPress Core

Changeset 10901


Ignore:
Timestamp:
04/09/2009 01:23:10 PM (16 years ago)
Author:
azaozz
Message:

Use cached feed data on the Dashboard, props DD32, #9483

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r10810 r10901  
    839839    }
    840840
    841 
    842     /* TODO Cache check here.
     841    include_once ABSPATH . WPINC . '/class-feed.php';
    843842    foreach ( $check_urls as $check_url ) {
    844 
    845         if ( 'HIT' !== $status ) {
     843        $cache = new WP_Feed_Cache_Transient('', md5($check_url), '');
     844        if ( ! $cache->load() ) {
    846845            echo $loading;
    847846            return false;
    848847        }
    849848    }
    850     */
    851 
    852     // Always load async until above fixed.
    853     echo $loading;
    854     return false;
    855849
    856850    if ( $callback && is_callable( $callback ) ) {
Note: See TracChangeset for help on using the changeset viewer.