| @@ -9,17 +9,17 @@ | ||
| 9 | 9 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 10 | 10 | exit; |
| 11 | 11 | } |
| 12 | 12 | if ( is_multisite() ) { |
| 13 | -foreach ( get_sites( array( 'number' => 0, 'fields' => 'ids', 'no_found_rows' => true, 'orderby' => false ) ) as $sqlite_object_cache_site_id ) { | |
| 13 | +foreach ( get_sites( array( 'number' => 0, 'fields' => 'ids', 'no_found_rows' => true, 'orderby' => false ) ) as $site_id ) { | |
| 14 | 14 | try { |
| 15 | - switch_to_blog( $sqlite_object_cache_site_id ); | |
| 15 | + switch_to_blog( $site_id ); | |
| 16 | 16 | delete_option( 'sqlite_object_cache_settings' ); |
| 17 | 17 | delete_option( 'sqlite_object_cache_version' ); |
| 18 | 18 | } catch ( Exception $ex ) { |
| 19 | - /* Empty, intentionally. Avoid crashes on asset clearing. */ | |
| 19 | + /* Avoid crashes on transient clearing */ | |
| 20 | + error_log( 'SQLite Object Cache problem removing blog options. Blog ' . $site_id . ':' . $ex->getMessage() ); | |
| 20 | 21 | } finally { |
| 21 | 22 | restore_current_blog(); |
| 22 | 23 | } |
| 23 | 24 | } |
| 24 | 25 | } |
| 25 | -unset ( $sqlite_object_cache_site_id ); | |