←
WPExplorer15,742 posts
WPExplorer avatar

WPExplorer

@WPExplorer

#WPExplorer 🔭 is your go-to resource for everything #WordPress.

◷ Joined October 2009▧ 681 Photos and videos
WPExplorer avatar
WPExplorer@WPExplorer·Sep 1

This hits every theme and plugin updated through wp-admin on the platform, not just mine. I'm a happy WP Engine customer and just want to help make the platform better. @WPEngineSupport can this get in front of your platform team?

WPExplorer avatar
WPExplorer@WPExplorer·Sep 1

Support's suggested fix, "rely on standard file invalidation (opcache_invalidate)". Which is in their disable_functions list...

WPExplorer avatar
WPExplorer@WPExplorer·Sep 1

On WP Engine that code runs and does nothing. opcache.restrict_api is set to /opt/ while sites run from /nas/content/..., so core's own capability check fails and it silently returns false.

WPExplorer avatar
WPExplorer@WPExplorer·Sep 1

WordPress core already handles this. wp_opcache_invalidate() runs on every file the upgrader writes, calling opcache_invalidate() per file, not a global reset.