Changeset 2280 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/cli/update-caches.php
- Timestamp:
- 01/12/2016 05:44:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/cli/update-caches.php
r2278 r2280 11 11 $this->contributors_count(); 12 12 $this->translation_status(); 13 $this->existing_locales(); 13 14 } 14 15 … … 68 69 WP_CLI::success( 'Translation status was updated.' ); 69 70 } 71 72 /** 73 * Update cache for existing locales. 74 * 75 * @subcommand existing-locales 76 */ 77 public function existing_locales() { 78 $existing_locales = GP::$translation_set->existing_locales(); 79 80 wp_cache_set( 'existing-locales', $existing_locales, $this->cache_group ); 81 WP_CLI::success( 'Existing locales were updated.' ); 82 } 70 83 }
Note: See TracChangeset
for help on using the changeset viewer.