Project

General

Profile

Bug #10675

Updated by Boone Gorges over 5 years ago

Spotted while examining recent performance issues: Plugins that use the Freemius library https://github.com/Freemius/wordpress-sdk - especially NextGEN Gallery, but it also exists in some other Commons plugins themes - can cause excessive write queries. A backtrace is attached (the first few items are related to my debugging tools, which hook to pre_update_option_fs_accounts). 

 My best guess as to what's happening is that the plugin is attempting to update_option( 'fs_accounts' ) with a value that is very huge (because it contains a list of all plugins on the system). It's likely that the update routine is experiencing latency due to its huge size. It's also possible that the entries are too big for Memcached, so that they're not being properly reported as having been set. In any case, it's triggering an update on nearly every pageload on affected sites. I have a hunch that this is one of the underlying causes of ongoing performance issues. 

 We are not the only ones experiencing the problem. See https://github.com/Freemius/wordpress-sdk/issues/260 

 For the time being, I'm going to hotfix the plugin so that it does not attempt the update_option(). Then I'll spend some more time looking into more general solutions.

Back