opcache_reset on plugin/theme/core update

Several comments

  1. just in case, you probably should check that the PHP version is 5.5 and above before calling the function (or check for its existence, not sure if an equivalent function existed in the original APC under the same name)

  2. You priority is too high. You actually want to call it after all other plugins have finished whatever they are doing after an upgrade, just in case they do something that impacts any PHP files. Go for a priority of PHP_INT_MAX -1.

Your code might actually get triggered too many times if there are several upgrades done in the same time but except for slight performance hit I don’t see anything bad that might come out of it.