WordPress.org

Making WordPress.org


Ignore:
Timestamp:
06/22/16 14:49:08 (18 months ago)
Author:
tellyworth
Message:

Plugin directory: implement a simple recommended plugins API response using Elasticsearch.

This returns a list of plugins with the following criteria:

  • Not already installed
  • Tested-up-to is close to the requesting site's WP version
  • Scoring accounts for similar factors as a regular search

See #1729

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php

    r3496 r3550  
    143143        $cache_key = $this->query_plugins_cache_key( $request ); 
    144144 
    145         if ( false === ( $response = wp_cache_get( $cache_key, self::CACHE_GROUP ) ) ) { 
     145        if ( true || false === ( $response = wp_cache_get( $cache_key, self::CACHE_GROUP ) ) ) { 
    146146            $response = $this->internal_rest_api_call( 'plugins/v1/query-plugins', $request->query_plugins_params_for_query() ); 
    147147            if ( 200 != $response->status ) { 
Note: See TracChangeset for help on using the changeset viewer.