diff --git a/wp-admin/includes/admin-filters.php b/wp-admin/includes/admin-filters.php
index 141e8aa..b316536 100644
a
|
b
|
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async |
119 | 119 | add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 ); |
120 | 120 | add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 ); |
121 | 121 | add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 ); |
| 122 | add_action( 'upgrader_process_complete', 'wp_opcache_reset', 10, 0 ); |
diff --git a/wp-includes/update.php b/wp-includes/update.php
index f0b999a..b58a4a3 100644
a
|
b
|
function wp_clean_update_cache() { |
706 | 706 | delete_site_transient( 'update_core' ); |
707 | 707 | } |
708 | 708 | |
| 709 | /** |
| 710 | * Reset PHP opcache |
| 711 | * |
| 712 | * @since 4.8 |
| 713 | * |
| 714 | * @return boolean |
| 715 | */ |
| 716 | function wp_opcache_reset() { |
| 717 | if ( function_exists( 'opcache_reset' ) && (!ini_get('opcache.restrict_api') || stripos(ABSPATH, ini_get('opcache.restrict_api')) === 0) ) { |
| 718 | opcache_reset(); |
| 719 | return true; |
| 720 | } |
| 721 | return false; |
| 722 | } |
| 723 | |
709 | 724 | if ( ( ! is_main_site() && ! is_network_admin() ) || wp_doing_ajax() ) { |
710 | 725 | return; |
711 | 726 | } |