Making WordPress.org


Ignore:
Timestamp:
03/22/2020 12:05:56 PM (5 years ago)
Author:
ocean90
Message:

Translate: Remove cron schedules for cache updates, update data on the fly.

Prevents missing data before the next schedule is run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php

    r9299 r9616  
    88use stdClass;
    99use WordPressdotorg\GlotPress\Rosetta_Roles\Plugin as Rosetta_Roles;
     10use WordPressdotorg\GlotPress\Routes\Plugin;
    1011
    1112/**
     
    129130        );
    130131
    131         $contributors_count = wp_cache_get( 'contributors-count', 'wporg-translate' );
    132         if ( false === $contributors_count ) {
    133             $contributors_count = array();
    134         }
     132        $contributors_count = Plugin::get_contributors_count();
    135133
    136134        $variants = $this->get_locale_variants( $locale_slug );
     
    183181        $project_icon = $this->get_project_icon( $project, $sub_project, 64 );
    184182
    185         $contributors_count = wp_cache_get( 'contributors-count', 'wporg-translate' );
    186         if ( false === $contributors_count ) {
    187             $contributors_count = array();
    188         }
     183        $contributors_count = Plugin::get_contributors_count();
    189184
    190185        $sub_project_statuses = array();
Note: See TracChangeset for help on using the changeset viewer.