Skip to content

Commit

Permalink
Attach wipeOpcacheByForce to upgrader_process_complete
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Apr 28, 2016
1 parent 9f096e3 commit a75f879
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/includes/classes/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ public function setup()
add_action('admin_init', [$this, 'autoClearCacheOnSettingChanges']);
add_action('safecss_save_pre', [$this, 'autoClearCacheOnJetpackCustomCss'], 10, 1);
add_action('upgrader_process_complete', [$this, 'autoClearOnUpgraderProcessComplete'], 10, 2);
add_action('upgrader_process_complete', [$this, 'wipeOpcacheByForce'], PHP_INT_MAX);

add_action('switch_theme', [$this, 'autoClearCache']);
add_action('wp_create_nav_menu', [$this, 'autoClearCache']);
Expand Down

0 comments on commit a75f879

Please sign in to comment.