Skip to content

Instantly share code, notes, and snippets.

@felixarntz
Last active February 15, 2020 00:53
Show Gist options
  • Save felixarntz/4d6ce88173c157ebcca4ffe97e13e267 to your computer and use it in GitHub Desktop.
Save felixarntz/4d6ce88173c157ebcca4ffe97e13e267 to your computer and use it in GitHub Desktop.
<?php
/**
* Temporary fix Site Kit opcache_reset call, in case the function is not defined.
*
* @author Felix Arntz, Google
* @license Apache 2.0
* @copyright 2020 Google Inc.
*
* @wordpress-plugin
* Plugin Name: Site Kit Fix Opcache Call (temporary)
* Description: Temporary fix Site Kit opcache_reset call, in case the function is not defined.
* Plugin URI: https://gist.github.com/felixarntz/4d6ce88173c157ebcca4ffe97e13e267
* Version: 0.1.0
* Author: Felix Arntz, Google
* Author URI: https://felix-arntz.me
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
*/
add_action(
'plugins_loaded',
function() {
remove_action( 'upgrader_process_complete', 'googlesitekit_opcache_reset' );
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment