Make WordPress Core

Ticket #39639: 39639-increase-cache-time-on-wp-get-available-translations.diff

File 39639-increase-cache-time-on-wp-get-available-translations.diff, 506 bytes (added by leewillis77, 8 years ago)

Patch that extends cache time to one day.

  • wp-admin/includes/translation-install.php

     
    134134        }
    135135
    136136        if ( ! defined( 'WP_INSTALLING' ) ) {
    137                 set_site_transient( 'available_translations', $translations, 3 * HOUR_IN_SECONDS );
     137                set_site_transient( 'available_translations', $translations, DAY_IN_SECONDS );
    138138        }
    139139
    140140        return $translations;