Making WordPress.org

Changeset 8915


Ignore:
Timestamp:
06/04/2019 07:05:21 AM (5 years ago)
Author:
dd32
Message:

Theme Directory: API: Change the cache format for api.wordpress.org/themes/update-check/.

See #3718.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/themes-api.php

    r1392 r8915  
    1515    wp_cache_add_global_groups( $cache_group );
    1616
    17     wp_cache_set( "themeid:{$slug}", $post_id, $cache_group );
    18     wp_cache_set( "themevers:{$slug}", $current_version, $cache_group );
     17    $theme_meta = array(
     18        'current_version' => $current_version,
     19        'requires'        => wporg_themes_get_version_meta( $post_id, '_requires', $current_version ),
     20        'requires_php'    => wporg_themes_get_version_meta( $post_id, '_requires_php', $current_version ),
     21    );
     22
     23    wp_cache_set( $slug, $theme_meta, $cache_group );
    1924}
    2025add_action( 'wporg_themes_update_version_live', 'wporg_themes_update_check', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.