Title: WordPress or plugin update
Last modified: July 16, 2018

---

# WordPress or plugin update

 *  Resolved [Luke](https://wordpress.org/support/users/danceyrselfclean_admin/)
 * (@danceyrselfclean_admin)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wordpress-or-plugin-update/)
 * Hi would you be able to elaborate on what triggers the automatic flush of OPcache,
   what constitutes a WordPress update for example? Is it literally when you update
   the WordPress version or does it also trigger after events such as a theme update,
   a post being published etc?

Viewing 1 replies (of 1 total)

 *  Plugin Author [nierdz](https://wordpress.org/support/users/mnttech/)
 * (@mnttech)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wordpress-or-plugin-update/#post-10498491)
 * Hi
 * I use this hook to catch the moment I can flush OPcache : [upgrader_process_complete](https://developer.wordpress.org/reference/hooks/upgrader_process_complete-3/)
 * So, it’s only when a theme, plugin or WP itself is updated and not when post 
   is published.

Viewing 1 replies (of 1 total)

The topic ‘WordPress or plugin update’ is closed to new replies.

 * ![](https://ps.w.org/flush-opcache/assets/icon-256x256.jpg?rev=1716642)
 * [WP OPcache](https://wordpress.org/plugins/flush-opcache/)
 * [Support Threads](https://wordpress.org/support/plugin/flush-opcache/)
 * [Active Topics](https://wordpress.org/support/plugin/flush-opcache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flush-opcache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flush-opcache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nierdz](https://wordpress.org/support/users/mnttech/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/wordpress-or-plugin-update/#post-10498491)
 * Status: resolved