Title: Plugin&#039;s upgrade-plugin.php slowing down server
Last modified: August 21, 2016

---

# Plugin's upgrade-plugin.php slowing down server

 *  Resolved [awhig](https://wordpress.org/support/users/awhig/)
 * (@awhig)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugins-upgrade-pluginphp-slowing-down-server/)
 * Hi,
 * I’ve been reviewing my db logs the last few days and found an issue with this
   plugin. I am using verison 2.0.2 of the plugin.
 * I saw a lot of queries for “pib_old_version” in the options table in my log. 
   These were happening very very often.
 * I tracked down the query to the upgrade-plugin.php file.
 * The main issue I have is that this code is constantly doing the following:
 * add_option( ‘pib_old_version’, get_option( ‘pib_version’ ) );
 * on line 18.
 * In addition to doing a DB insert/update, this causes the object cache, which 
   contains all of the mostly static options, to be flushed (I’m using W3TC with
   Object Caching On).
 * This has a chain reaction and causes other plugins, etc. to re-populate the cache
   by doing expensive queries all over again.
 * In general, the options are relatively stable. They are only updated once in 
   awhile by the admin, etc. By having this plugin constantly updating the options
   table, it is eroding performance.
 * Please consider reviewing and changing this code to not constantly update the
   options table.
 * I’ve currently fixed this issue by commenting out the upgrade-plugin.php file.
   The object cache is no longer being constantly flushed, and the load on my DB
   server has dropped.
 * Thanks,
    Rich
 * [https://wordpress.org/plugins/pinterest-pin-it-button/](https://wordpress.org/plugins/pinterest-pin-it-button/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugins-upgrade-pluginphp-slowing-down-server/#post-4698171)
 * [@awhig](https://wordpress.org/support/users/awhig/)
 * Thanks for checking out the plugin. We actually found out about this issue recently
   also. We should be pushing out an update soon and this issue will be fixed.
 * Thanks for your additional notes and troubleshooting.
 * Nick Young

Viewing 1 replies (of 1 total)

The topic ‘Plugin's upgrade-plugin.php slowing down server’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pinterest-pin-it-button_f5f5f5.svg)
 * [Pinterest "Pin It" Button](https://wordpress.org/plugins/pinterest-pin-it-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pinterest-pin-it-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-pin-it-button/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-pin-it-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-pin-it-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-pin-it-button/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/plugins-upgrade-pluginphp-slowing-down-server/#post-4698171)
 * Status: resolved