Making WordPress.org


Ignore:
Timestamp:
12/19/2019 08:03:44 AM (2 years ago)
Author:
dd32
Message:

Theme Directory: Prioritise exact-match theme searches in search results, and allow an exact-match slug/title to bypass the last two years restriction.

Fixes #2939, #4920.

File:
1 edited

Legend:

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

    r8999 r9363  
    450450        $cache_key = sanitize_key( __METHOD__ . ':' . get_locale() . ':' . md5( serialize( $this->request ) . serialize( $this->fields ) ) );
    451451        if ( false !== ( $this->response = wp_cache_get( $cache_key, $this->cache_group ) ) && empty( $this->request->cache_buster ) ) {
    452             return;
     452        //  return;
    453453        }
    454454
     
    487487        }
    488488
    489         wp_cache_set( $cache_key, $this->response, $this->cache_group, $this->cache_life );
     489        //wp_cache_set( $cache_key, $this->response, $this->cache_group, $this->cache_life );
    490490    }
    491491
Note: See TracChangeset for help on using the changeset viewer.