Changeset 5233 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-svn-watcher.php
- Timestamp:
- 04/04/2017 04:59:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-svn-watcher.php
r4520 r5233 70 70 $logs = SVN::log( self::SVN_URL, array( $rev, $head_rev ) ); 71 71 if ( $logs['errors'] ) { 72 throw new Exception( "Could not fetch plugins.svn logs: " . implode( ', ', $logs['errors'] ) ); 72 if ( wp_cache_get( 'get_plugin_changes_between_failed', 'svn-watch' ) ) { 73 // Set it again, so if the next request fails, this exception will be thrown again, until the issue is resolved. 74 wp_cache_set( 'get_plugin_changes_between_failed', time(), 'svn-watch', 60 ); 75 76 throw new Exception( "Could not fetch plugins.svn logs: " . implode( ', ', $logs['errors'] ) ); 77 } else { 78 // If the job fails again within the next minute, throw an exception (as above) 79 // but for now, just silently let it re-try next iteration, hopefully it was a transient failure / network timeout. 80 wp_cache_set( 'get_plugin_changes_between_failed', time(), 'svn-watch', 60 ); 81 return array(); 82 } 73 83 } 74 84
Note: See TracChangeset
for help on using the changeset viewer.